1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 06:07:12 +00:00

added missing emptyscreen() and VR_MENU, both in HR and in RogueViz

This commit is contained in:
Zeno Rogue
2025-08-25 21:14:48 +02:00
parent c75342da10
commit 0de5f6c648
5 changed files with 29 additions and 0 deletions

View File

@@ -2160,6 +2160,8 @@ EX void menuitem_sightrange_style(key_type c IS('c')) {
c
);
dialog::add_action_push([] {
cmode = sm::VR_MENU;
emptyscreen();
dialog::init(XLAT("draw range based on"));
dialog::addBoolItem(XLAT("draw range based on distance"), vid.use_smart_range == 0, 'd');
dialog::add_action([] () { vid.use_smart_range = 0; popScreen(); edit_sightrange(); });
@@ -3886,6 +3888,8 @@ EX void show_color_dialog() {
#if CAP_CONFIG
EX void resetConfigMenu() {
cmode = sm::VR_MENU;
emptyscreen();
dialog::init(XLAT("reset all configuration"));
dialog::addInfo("Are you sure?");
dialog::addItem("yes, and delete the config file", 'd');