Allow assigning a shortcut to the options window.

This commit is contained in:
Aaron van Geffen 2016-01-23 23:15:48 +09:00
parent 6eaa93c9bc
commit 2d90bc8354
5 changed files with 11 additions and 0 deletions

View File

@ -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 #

View File

@ -78,6 +78,7 @@ enum {
SHORTCUT_SCROLL_MAP_RIGHT,
SHORTCUT_OPEN_CHAT_WINDOW,
SHORTCUT_QUICK_SAVE_GAME,
SHORTCUT_SHOW_OPTIONS,
SHORTCUT_COUNT
};

View File

@ -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

View File

@ -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
};

View File

@ -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,
};
/**