disk shape configurable

This commit is contained in:
Zeno Rogue 2022-05-21 17:09:34 +02:00
parent 296726a887
commit 1cf26b5380
1 changed files with 9 additions and 1 deletions

View File

@ -935,10 +935,18 @@ EX void initConfig() {
param_i(vid.cells_drawn_limit, "limit on cells drawn", 10000);
param_i(vid.cells_generated_limit, "limit on cells generated", 250);
param_enum(diskshape, "disk_shape", "disk_shape", dshTiles)
->editable({{"distance in tiles", ""}, {"distance in vertices", ""}, {"geometric distance", ""}
}, "disk shape", 'S')
->set_reaction([] { if(game_active) { stop_game(); start_game(); } });
param_i(req_disksize, "disk_size")
->editable(10, 100000, 10, "disk size", "Play on a disk. Enables the special game rules for small bounded spaces (especially relevant for e.g. Minefield and Halloween). The number given is the number of tiles to use; it is not used exactly, actually the smallest disk above this size is used. Set to 0 to disable.", 'd')
->set_sets([] { dialog::bound_low(0); })
->set_reaction([] { if(game_active) { stop_game(); start_game(); } });
->set_reaction([] { if(game_active) { stop_game(); start_game(); } })
->set_extra([] {
add_edit(diskshape);
});
#if CAP_SOLV
addsaver(sn::solrange_xy, "solrange-xy");