mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Merge pull request #2796 from AaronVanGeffen/shortcut_options
Allow assigning a shortcut to the options window
This commit is contained in:
@@ -4015,6 +4015,7 @@ STR_5710 :Group name
|
||||
STR_5711 :Enter new name for this group:
|
||||
STR_5712 :Can't modify permission that you do not have yourself
|
||||
STR_5713 :Kick Player
|
||||
STR_5714 :Show options window
|
||||
|
||||
#############
|
||||
# Scenarios #
|
||||
|
||||
@@ -78,6 +78,7 @@ enum {
|
||||
SHORTCUT_SCROLL_MAP_RIGHT,
|
||||
SHORTCUT_OPEN_CHAT_WINDOW,
|
||||
SHORTCUT_QUICK_SAVE_GAME,
|
||||
SHORTCUT_SHOW_OPTIONS,
|
||||
|
||||
SHORTCUT_COUNT
|
||||
};
|
||||
|
||||
@@ -524,6 +524,11 @@ static void shortcut_quick_save_game()
|
||||
}
|
||||
}
|
||||
|
||||
static void shortcut_show_options()
|
||||
{
|
||||
window_options_open();
|
||||
}
|
||||
|
||||
static const shortcut_action shortcut_table[SHORTCUT_COUNT] = {
|
||||
shortcut_close_top_most_window,
|
||||
shortcut_close_all_floating_windows,
|
||||
@@ -570,6 +575,7 @@ static const shortcut_action shortcut_table[SHORTCUT_COUNT] = {
|
||||
NULL,
|
||||
shortcut_open_chat_window,
|
||||
shortcut_quick_save_game,
|
||||
shortcut_show_options,
|
||||
};
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -2304,6 +2304,8 @@ enum {
|
||||
STR_ENTER_NEW_NAME_FOR_THIS_GROUP = 5711,
|
||||
STR_CANT_MODIFY_PERMISSION_THAT_YOU_DO_NOT_HAVE_YOURSELF = 5712,
|
||||
|
||||
STR_SHORTCUT_SHOW_OPTIONS = 5714,
|
||||
|
||||
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||
STR_COUNT = 32768
|
||||
};
|
||||
|
||||
@@ -132,6 +132,7 @@ const rct_string_id ShortcutStringIds[] = {
|
||||
STR_SHORTCUT_SCROLL_MAP_RIGHT,
|
||||
STR_SEND_MESSAGE,
|
||||
STR_SHORTCUT_QUICK_SAVE_GAME,
|
||||
STR_SHORTCUT_SHOW_OPTIONS,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user