1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

nil:: edit nilwidth via menu

This commit is contained in:
Zeno Rogue 2021-03-21 12:50:32 +01:00
parent 7b06abd97a
commit c41d1e173c

View File

@ -673,6 +673,15 @@ EX void menuitem_binary_width(char key) {
});
}
EX void menuitem_nilwidth(char key) {
dialog::addSelItem(XLAT("nil width"), fts(nilv::nilwidth), key);
dialog::add_action([] {
dialog::editNumber(nilv::nilwidth, 0.01, 2, 0.1, 1, XLAT("Nil width"), "");
dialog::reaction = ray::reset_raycaster;
dialog::bound_low(0.01);
});
}
EX void showEuclideanMenu() {
// for(int i=2; i<lt; i++) landvisited[i] = true;
@ -933,6 +942,9 @@ EX void showEuclideanMenu() {
menuitem_binary_width('v');
add_edit_wall_quality('W');
}
else if(nil) {
menuitem_nilwidth('v');
}
else if(WDIM == 3 || kite::in() || arb::in()) dialog::addBreak(100);
else
menuitem_change_variation('v');