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

do not use emptyscreen. Use gamescreen but with NOSCR

This commit is contained in:
Zeno Rogue
2025-08-25 21:51:57 +02:00
parent 02ba3ee404
commit 6b30441ea1
9 changed files with 29 additions and 35 deletions

View File

@@ -2160,8 +2160,8 @@ EX void menuitem_sightrange_style(key_type c IS('c')) {
c
);
dialog::add_action_push([] {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR;
gamescreen();
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(); });
@@ -3888,8 +3888,8 @@ EX void show_color_dialog() {
#if CAP_CONFIG
EX void resetConfigMenu() {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR;
gamescreen();
dialog::init(XLAT("reset all configuration"));
dialog::addInfo("Are you sure?");
dialog::addItem("yes, and delete the config file", 'd');