mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-12 07:16:01 +00:00
allow_reset_config can now be disabled
This commit is contained in:
@@ -3887,6 +3887,8 @@ EX void show_color_dialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if CAP_CONFIG
|
#if CAP_CONFIG
|
||||||
|
EX bool allow_reset_config = true;
|
||||||
|
|
||||||
EX void resetConfigMenu() {
|
EX void resetConfigMenu() {
|
||||||
cmode = sm::VR_MENU | sm::NOSCR;
|
cmode = sm::VR_MENU | sm::NOSCR;
|
||||||
gamescreen();
|
gamescreen();
|
||||||
@@ -4217,8 +4219,10 @@ EX void showSettings() {
|
|||||||
dialog::addItem(XLAT("save the current config"), 's');
|
dialog::addItem(XLAT("save the current config"), 's');
|
||||||
dialog::add_action(saveConfig);
|
dialog::add_action(saveConfig);
|
||||||
|
|
||||||
dialog::addItem(XLAT("reset all configuration"), 'R');
|
if(allow_reset_config) {
|
||||||
dialog::add_action_push(resetConfigMenu);
|
dialog::addItem(XLAT("reset all configuration"), 'R');
|
||||||
|
dialog::add_action_push(resetConfigMenu);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(getcstat == 's') mouseovers = XLAT("Config file: %1", conffile);
|
if(getcstat == 's') mouseovers = XLAT("Config file: %1", conffile);
|
||||||
|
Reference in New Issue
Block a user