Skip to content

Commit

Permalink
Rename two shortcut string ids that did not follow conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronVanGeffen committed May 11, 2024
1 parent 2b77804 commit d26bb53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/openrct2-ui/UiStringIds.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace OpenRCT2
{
enum : StringId
{
// Interface
// General
STR_ADJUST_LARGER_LAND_TIP = 2379,
STR_ADJUST_SMALLER_LAND_TIP = 2378,
STR_BROKEN = 3124,
Expand Down Expand Up @@ -60,8 +60,7 @@ namespace OpenRCT2
STR_WINDOW_TITLE_TIP = 829,
STR_WHITE_STRING = 5139,

// Input
STR_ADVANCE_TO_NEXT_TICK = 6268,
// Colour dropdown tooltips
STR_COLOUR_AQUAMARINE_TIP = 5526,
STR_COLOUR_AQUA_DARK_TIP = 6569,
STR_COLOUR_BLACK_TIP = 5516,
Expand Down Expand Up @@ -118,9 +117,11 @@ namespace OpenRCT2
STR_COLOUR_VOID_TIP = 6574,
STR_COLOUR_WHITE_TIP = 5518,
STR_COLOUR_YELLOW_TIP = 5534,
STR_SEND_MESSAGE = 5493,

// Shortcuts
STR_SHORTCUT_ADJUST_LAND = 2511,
STR_SHORTCUT_ADJUST_WATER = 2512,
STR_SHORTCUT_ADVANCE_TO_NEXT_TICK = 6268,
STR_SHORTCUT_BACKSPACE = 2533,
STR_SHORTCUT_BUILD_NEW_RIDE = 2515,
STR_SHORTCUT_BUILD_PATHS = 2514,
Expand Down Expand Up @@ -233,6 +234,7 @@ namespace OpenRCT2
STR_SHORTCUT_SEE_THROUGH_STAFF_TOGGLE = 6487,
STR_SHORTCUT_SEE_THROUGH_VEGETATION_TOGGLE = 6484,
STR_SHORTCUT_SEE_THROUGH_VEHICLES_TOGGLE = 6485,
STR_SHORTCUT_SEND_MESSAGE = 5493,
STR_SHORTCUT_SHOW_FINANCIAL_INFORMATION = 2516,
STR_SHORTCUT_SHOW_GUEST_LIST = 2520,
STR_SHORTCUT_SHOW_MULTIPLAYER = 5812,
Expand Down
4 changes: 2 additions & 2 deletions src/openrct2-ui/input/Shortcuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ void ShortcutManager::RegisterDefaultShortcuts()
RegisterShortcut(ShortcutId::InterfaceSceneryPicker, STR_SHORTCUT_OPEN_SCENERY_PICKER, ShortcutOpenSceneryPicker);
RegisterShortcut(
ShortcutId::InterfaceDisableClearance, STR_SHORTCUT_TOGGLE_CLEARANCE_CHECKS, ShortcutToggleClearanceChecks);
RegisterShortcut(ShortcutId::InterfaceMultiplayerChat, STR_SEND_MESSAGE, "C", []() {
RegisterShortcut(ShortcutId::InterfaceMultiplayerChat, STR_SHORTCUT_SEND_MESSAGE, "C", []() {
if (!(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) && ChatAvailable())
{
ChatToggle();
Expand Down Expand Up @@ -897,7 +897,7 @@ void ShortcutManager::RegisterDefaultShortcuts()

// Debug
RegisterShortcut(ShortcutId::DebugToggleConsole, STR_CONSOLE, "`", ShortcutToggleConsole);
RegisterShortcut(ShortcutId::DebugAdvanceTick, STR_ADVANCE_TO_NEXT_TICK, []() {
RegisterShortcut(ShortcutId::DebugAdvanceTick, STR_SHORTCUT_ADVANCE_TO_NEXT_TICK, []() {
if (!(gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_MANAGER)))
{
gDoSingleUpdate = true;
Expand Down

0 comments on commit d26bb53

Please sign in to comment.