1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 15:39:55 +00:00

rwalls setter now has a quick option to set no walls

This commit is contained in:
Zeno Rogue 2024-06-16 13:58:10 +02:00
parent 547a95e583
commit 43ea4d6bbf

View File

@ -1569,6 +1569,10 @@ EX namespace ccolor {
EX void edit_rwalls() { EX void edit_rwalls() {
dialog::editNumber(rwalls, 0, 100, 10, 50, XLAT("probability of a wall (%)"), ""); dialog::editNumber(rwalls, 0, 100, 10, 50, XLAT("probability of a wall (%)"), "");
dialog::get_di().extra_options = [] {
dialog::addSelItem(XLAT("no walls"), "0", 'N');
dialog::add_action([] { rwalls = 0; stop_game(); start_game(); popScreen(); });
};
dialog::get_di().reaction = [] { stop_game(); start_game(); }; dialog::get_di().reaction = [] { stop_game(); start_game(); };
} }