mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-13 23:18:16 +00:00
disk shape configurable
This commit is contained in:
parent
296726a887
commit
1cf26b5380
10
config.cpp
10
config.cpp
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user