mirror of https://github.com/OpenRCT2/OpenRCT2.git
Allow assigning a shortcut to the options window.
This commit is contained in:
parent
6eaa93c9bc
commit
2d90bc8354
|
@ -4015,6 +4015,7 @@ STR_5710 :Group name
|
||||||
STR_5711 :Enter new name for this group:
|
STR_5711 :Enter new name for this group:
|
||||||
STR_5712 :Can't modify permission that you do not have yourself
|
STR_5712 :Can't modify permission that you do not have yourself
|
||||||
STR_5713 :Kick Player
|
STR_5713 :Kick Player
|
||||||
|
STR_5714 :Show options window
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Scenarios #
|
# Scenarios #
|
||||||
|
|
|
@ -78,6 +78,7 @@ enum {
|
||||||
SHORTCUT_SCROLL_MAP_RIGHT,
|
SHORTCUT_SCROLL_MAP_RIGHT,
|
||||||
SHORTCUT_OPEN_CHAT_WINDOW,
|
SHORTCUT_OPEN_CHAT_WINDOW,
|
||||||
SHORTCUT_QUICK_SAVE_GAME,
|
SHORTCUT_QUICK_SAVE_GAME,
|
||||||
|
SHORTCUT_SHOW_OPTIONS,
|
||||||
|
|
||||||
SHORTCUT_COUNT
|
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] = {
|
static const shortcut_action shortcut_table[SHORTCUT_COUNT] = {
|
||||||
shortcut_close_top_most_window,
|
shortcut_close_top_most_window,
|
||||||
shortcut_close_all_floating_windows,
|
shortcut_close_all_floating_windows,
|
||||||
|
@ -570,6 +575,7 @@ static const shortcut_action shortcut_table[SHORTCUT_COUNT] = {
|
||||||
NULL,
|
NULL,
|
||||||
shortcut_open_chat_window,
|
shortcut_open_chat_window,
|
||||||
shortcut_quick_save_game,
|
shortcut_quick_save_game,
|
||||||
|
shortcut_show_options,
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
|
@ -2304,6 +2304,8 @@ enum {
|
||||||
STR_ENTER_NEW_NAME_FOR_THIS_GROUP = 5711,
|
STR_ENTER_NEW_NAME_FOR_THIS_GROUP = 5711,
|
||||||
STR_CANT_MODIFY_PERMISSION_THAT_YOU_DO_NOT_HAVE_YOURSELF = 5712,
|
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
|
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||||
STR_COUNT = 32768
|
STR_COUNT = 32768
|
||||||
};
|
};
|
||||||
|
|
|
@ -132,6 +132,7 @@ const rct_string_id ShortcutStringIds[] = {
|
||||||
STR_SHORTCUT_SCROLL_MAP_RIGHT,
|
STR_SHORTCUT_SCROLL_MAP_RIGHT,
|
||||||
STR_SEND_MESSAGE,
|
STR_SEND_MESSAGE,
|
||||||
STR_SHORTCUT_QUICK_SAVE_GAME,
|
STR_SHORTCUT_QUICK_SAVE_GAME,
|
||||||
|
STR_SHORTCUT_SHOW_OPTIONS,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue