From: Holger Schemel Date: Wed, 16 Nov 2022 22:49:42 +0000 (+0100) Subject: added new config file options to hide shortcuts sub-menus X-Git-Tag: 4.3.3.0~16 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b33a83894bb764072a6ffa933939c0db55abbc5f;p=rocksndiamonds.git added new config file options to hide shortcuts sub-menus --- diff --git a/src/files.c b/src/files.c index 1cc2d280..de501719 100644 --- a/src/files.c +++ b/src/files.c @@ -10155,6 +10155,26 @@ static struct TokenInfo internal_setup_tokens[] = TYPE_BOOLEAN, &setup.internal.menu_save_and_exit, "menu_save_and_exit" }, + { + TYPE_BOOLEAN, + &setup.internal.menu_shortcuts_various, "menu_shortcuts_various" + }, + { + TYPE_BOOLEAN, + &setup.internal.menu_shortcuts_focus, "menu_shortcuts_focus" + }, + { + TYPE_BOOLEAN, + &setup.internal.menu_shortcuts_tape, "menu_shortcuts_tape" + }, + { + TYPE_BOOLEAN, + &setup.internal.menu_shortcuts_sound, "menu_shortcuts_sound" + }, + { + TYPE_BOOLEAN, + &setup.internal.menu_shortcuts_snap, "menu_shortcuts_snap" + }, { TYPE_BOOLEAN, &setup.internal.info_title, "info_title" diff --git a/src/libgame/system.h b/src/libgame/system.h index 9b4dece1..34655d65 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -1463,6 +1463,12 @@ struct SetupInternalInfo boolean menu_exit; boolean menu_save_and_exit; + boolean menu_shortcuts_various; + boolean menu_shortcuts_focus; + boolean menu_shortcuts_tape; + boolean menu_shortcuts_sound; + boolean menu_shortcuts_snap; + boolean info_title; boolean info_elements; boolean info_music; diff --git a/src/screens.c b/src/screens.c index f75a906b..5a559b14 100644 --- a/src/screens.c +++ b/src/screens.c @@ -7274,6 +7274,12 @@ static struct { &setup.internal.menu_exit, execExitSetup }, { &setup.internal.menu_save_and_exit, execSaveAndExitSetup }, + { &setup.internal.menu_shortcuts_various, execSetupShortcuts1 }, + { &setup.internal.menu_shortcuts_focus, execSetupShortcuts2 }, + { &setup.internal.menu_shortcuts_tape, execSetupShortcuts3 }, + { &setup.internal.menu_shortcuts_sound, execSetupShortcuts4 }, + { &setup.internal.menu_shortcuts_snap, execSetupShortcuts5 }, + { &setup.internal.info_title, execInfoTitleScreen }, { &setup.internal.info_elements, execInfoElements }, { &setup.internal.info_music, execInfoMusic },