1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Close #15143: Add a shortcut key for Giant Screenshot

This commit is contained in:
Kane
2021-08-01 17:20:34 +10:00
committed by GitHub
parent 660a5f9b02
commit bd8d3934e0
5 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ namespace OpenRCT2::Ui::ShortcutId
constexpr std::string_view InterfaceIncreaseSpeed = "interface.misc.increase_speed";
constexpr std::string_view InterfaceToggleToolbars = "interface.misc.toggle_toolbars";
constexpr std::string_view InterfaceScreenshot = "interface.misc.screenshot";
constexpr std::string_view InterfaceGiantScreenshot = "interface.misc.giant_screenshot";
constexpr std::string_view InterfaceLoadGame = "interface.misc.load_game";
constexpr std::string_view InterfaceSaveGame = "interface.misc.save_game";
constexpr std::string_view InterfaceMute = "interface.misc.mute";

View File

@@ -773,6 +773,7 @@ void ShortcutManager::RegisterDefaultShortcuts()
RegisterShortcut(ShortcutId::InterfaceLoadGame, STR_LOAD_GAME, "CTRL+L", []() { ShortcutLoadGame(); });
RegisterShortcut(ShortcutId::InterfaceSaveGame, STR_SAVE_GAME, "CTRL+F10", []() { ShortcutQuickSaveGame(); });
RegisterShortcut(ShortcutId::InterfaceScreenshot, STR_SHORTCUT_SCREENSHOT, "CTRL+S", []() { gScreenshotCountdown = 2; });
RegisterShortcut(ShortcutId::InterfaceGiantScreenshot, STR_SHORTCUT_GIANT_SCREENSHOT, "CTRL+SHIFT+S", []() { screenshot_giant(); });
RegisterShortcut(ShortcutId::InterfaceMute, STR_SHORTCUT_MUTE_SOUND, []() { OpenRCT2::Audio::ToggleAllSounds(); });
RegisterShortcut(ShortcutId::InterfaceDisableClearance, STR_SHORTCUT_TOGGLE_CLEARANCE_CHECKS, []() { ShortcutToggleClearanceChecks(); });
RegisterShortcut(ShortcutId::MultiplayerChat, STR_SEND_MESSAGE, "C", []() {

View File

@@ -3908,6 +3908,8 @@ enum
STR_CANT_RENAME_BANNER = 6454,
STR_CANT_RENAME_SIGN = 6455,
STR_SHORTCUT_GIANT_SCREENSHOT = 6456,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
/* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings
};