diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 2a9b510bf3..04dfb523f3 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -4117,6 +4117,7 @@ STR_5808 :{WINDOW_COLOUR_2}Number of shops and stalls: {BLACK}{COMMA16} STR_5809 :{WINDOW_COLOUR_2}Number of information kiosks and other facilities: {BLACK}{COMMA16} STR_5810 :Disable train length limit STR_5811 :{SMALLFONT}{BLACK}If checked, you can have up to{NEWLINE}255 cars per train +STR_5812 :Show multiplayer window ############# # Scenarios # diff --git a/src/config.h b/src/config.h index 74592a8da4..34a2f9f9c0 100644 --- a/src/config.h +++ b/src/config.h @@ -77,6 +77,7 @@ enum { SHORTCUT_SHOW_OPTIONS, SHORTCUT_MUTE_SOUND, SHORTCUT_WINDOWED_MODE_TOGGLE, + SHORTCUT_SHOW_MULTIPLAYER, SHORTCUT_COUNT }; diff --git a/src/interface/keyboard_shortcut.c b/src/interface/keyboard_shortcut.c index 152a0b5905..f5dcb6d334 100644 --- a/src/interface/keyboard_shortcut.c +++ b/src/interface/keyboard_shortcut.c @@ -537,6 +537,12 @@ static void shortcut_windowed_mode_toggle() platform_toggle_windowed_mode(); } +static void shortcut_show_multiplayer() +{ + if (network_get_mode() != NETWORK_MODE_NONE) + window_multiplayer_open(); +} + static const shortcut_action shortcut_table[SHORTCUT_COUNT] = { shortcut_close_top_most_window, shortcut_close_all_floating_windows, @@ -585,7 +591,8 @@ static const shortcut_action shortcut_table[SHORTCUT_COUNT] = { shortcut_quick_save_game, shortcut_show_options, shortcut_mute_sound, - shortcut_windowed_mode_toggle + shortcut_windowed_mode_toggle, + shortcut_show_multiplayer, }; #pragma endregion diff --git a/src/localisation/string_ids.h b/src/localisation/string_ids.h index c2018920a6..a9d35288eb 100644 --- a/src/localisation/string_ids.h +++ b/src/localisation/string_ids.h @@ -2448,6 +2448,8 @@ enum { STR_CHEAT_DISABLE_TRAIN_LENGTH_LIMIT = 5810, STR_CHEAT_DISABLE_TRAIN_LENGTH_LIMIT_TIP = 5811, + + STR_SHORTCUT_SHOW_MULTIPLAYER = 5812, // Have to include resource strings (from scenarios and objects) for the time being now that language is partially working STR_COUNT = 32768 diff --git a/src/windows/shortcut_keys.c b/src/windows/shortcut_keys.c index 77cd862af6..fd696ccba1 100644 --- a/src/windows/shortcut_keys.c +++ b/src/windows/shortcut_keys.c @@ -130,7 +130,8 @@ const rct_string_id ShortcutStringIds[] = { STR_SHORTCUT_QUICK_SAVE_GAME, STR_SHORTCUT_SHOW_OPTIONS, STR_SHORTCUT_MUTE_SOUND, - STR_SHORTCUT_WINDOWED_MODE_TOGGLE + STR_SHORTCUT_WINDOWED_MODE_TOGGLE, + STR_SHORTCUT_SHOW_MULTIPLAYER, }; /**