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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user