Files
OpenRCT2-Web/src/openrct2-ui/input/KeyboardShortcut.cpp
T

1133 lines
32 KiB
C++
Raw Normal View History

/*****************************************************************************
2020-07-21 15:04:34 +02:00
* Copyright (c) 2014-2020 OpenRCT2 developers
2015-10-20 20:16:30 +02:00
*
2018-06-15 14:07:34 +02:00
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
2015-10-20 20:16:30 +02:00
*
2018-06-15 14:07:34 +02:00
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
2018-06-22 23:20:31 +02:00
#include "KeyboardShortcuts.h"
2018-11-21 23:16:04 +01:00
#include <iterator>
2018-06-22 23:20:31 +02:00
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/interface/Window.h>
2017-10-10 10:52:48 +02:00
#include <openrct2/Context.h>
#include <openrct2/Editor.h>
2018-06-22 23:20:31 +02:00
#include <openrct2/Game.h>
#include <openrct2/Input.h>
2017-10-10 10:52:48 +02:00
#include <openrct2/OpenRCT2.h>
#include <openrct2/actions/LoadOrQuitAction.h>
#include <openrct2/actions/SetCheatAction.h>
#include <openrct2/audio/audio.h>
#include <openrct2/config/Config.h>
2018-01-05 23:00:39 +00:00
#include <openrct2/interface/Chat.h>
2018-06-22 23:20:31 +02:00
#include <openrct2/interface/Screenshot.h>
2018-01-06 18:32:25 +01:00
#include <openrct2/localisation/Localisation.h>
#include <openrct2/network/network.h>
#include <openrct2/platform/platform.h>
2017-10-17 13:51:47 +02:00
#include <openrct2/ride/Track.h>
2018-01-10 00:00:09 +01:00
#include <openrct2/ride/TrackPaint.h>
2018-03-19 23:28:40 +01:00
#include <openrct2/scenario/Scenario.h>
#include <openrct2/title/TitleScreen.h>
2017-12-13 13:02:24 +01:00
#include <openrct2/util/Util.h>
2017-10-19 10:01:05 +02:00
#include <openrct2/windows/Intent.h>
#include <openrct2/windows/tile_inspector.h>
2018-03-19 23:28:40 +01:00
#include <openrct2/world/Park.h>
2019-03-24 16:45:42 -05:00
#include <openrct2/world/Scenery.h>
2020-02-13 21:24:37 +01:00
extern bool gWindowSceneryEyedropperEnabled;
2018-02-14 09:42:26 +01:00
using shortcut_action = void (*)();
using namespace OpenRCT2;
Input::Shortcut gKeyboardShortcutChangeId;
2017-10-10 10:52:48 +02:00
namespace
{
extern const shortcut_action shortcut_table[Input::ShortcutsCount];
2017-10-10 10:51:03 +02:00
}
/**
2015-10-20 20:16:30 +02:00
*
* rct2: 0x006E3E68
*/
using namespace OpenRCT2;
void KeyboardShortcutHandle(int32_t key)
{
auto shortcut = KeyboardShortcutsGetFromKey(key);
if (shortcut != Input::Shortcut::Undefined)
2017-10-10 10:52:48 +02:00
{
KeyboardShortcutHandleCommand(shortcut);
2017-06-06 23:24:18 +02:00
}
}
void KeyboardShortcutHandleCommand(Input::Shortcut shortcut)
{
size_t shortcutIndex = static_cast<size_t>(shortcut);
if (shortcutIndex < std::size(shortcut_table))
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
shortcut_action action = shortcut_table[shortcutIndex];
2018-01-04 06:58:44 +01:00
if (action != nullptr)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
action();
}
}
}
#pragma region Shortcut Commands
static void ToggleViewFlag(int32_t viewportFlag)
{
2018-06-22 23:20:31 +02:00
rct_window* window;
2017-06-06 23:24:18 +02:00
window = window_get_main();
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window->viewport->flags ^= viewportFlag;
window->Invalidate();
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutCloseTopMostWindow()
{
2017-06-06 23:24:18 +02:00
window_close_top();
}
static void ShortcutCloseAllFloatingWindow()
{
2017-06-06 23:24:18 +02:00
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR))
window_close_all();
else if (gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-06-06 23:24:18 +02:00
window_close_top();
}
static void ShortcutCancelConstructionMode()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_ERROR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-06-06 23:24:18 +02:00
window_close(window);
else if (input_test_flag(INPUT_FLAG_TOOL_ACTIVE))
tool_cancel();
}
static void ShortcutPauseGame()
{
2017-10-10 10:52:48 +02:00
if (!(gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_MANAGER)))
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_TOP_TOOLBAR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
window->Invalidate();
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_PAUSE);
}
}
}
static void ShortcutZoomViewOut()
{
2017-06-06 23:24:18 +02:00
main_window_zoom(false, false);
}
static void ShortcutZoomViewIn()
{
2017-06-06 23:24:18 +02:00
main_window_zoom(true, false);
}
static void ShortcutRotateViewClockwise()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2018-06-22 23:20:31 +02:00
rct_window* w = window_get_main();
2017-06-06 23:24:18 +02:00
window_rotate_camera(w, 1);
}
static void ShortcutRotateViewAnticlockwise()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2018-06-22 23:20:31 +02:00
rct_window* w = window_get_main();
2017-06-06 23:24:18 +02:00
window_rotate_camera(w, -1);
}
static void ShortcutRotateConstructionObject()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
// Rotate scenery
2018-06-22 23:20:31 +02:00
rct_window* w = window_find_by_class(WC_SCENERY);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON)
&& w->widgets[WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type != WindowWidgetType::Empty)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(w, WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON);
return;
}
2017-06-06 23:24:18 +02:00
// Rotate construction track piece
w = window_find_by_class(WC_RIDE_CONSTRUCTION);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_RIDE_CONSTRUCTION__WIDX_ROTATE)
&& w->widgets[WC_RIDE_CONSTRUCTION__WIDX_ROTATE].type != WindowWidgetType::Empty)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
// Check if building a maze...
2017-10-10 10:52:48 +02:00
if (w->widgets[WC_RIDE_CONSTRUCTION__WIDX_ROTATE].tooltip != STR_RIDE_CONSTRUCTION_BUILD_MAZE_IN_THIS_DIRECTION_TIP)
{
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(w, WC_RIDE_CONSTRUCTION__WIDX_ROTATE);
return;
}
}
2017-06-06 23:24:18 +02:00
// Rotate track design preview
w = window_find_by_class(WC_TRACK_DESIGN_LIST);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TRACK_DESIGN_LIST__WIDX_ROTATE)
&& w->widgets[WC_TRACK_DESIGN_LIST__WIDX_ROTATE].type != WindowWidgetType::Empty)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(w, WC_TRACK_DESIGN_LIST__WIDX_ROTATE);
return;
}
2017-06-06 23:24:18 +02:00
// Rotate track design placement
w = window_find_by_class(WC_TRACK_DESIGN_PLACE);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TRACK_DESIGN_PLACE__WIDX_ROTATE)
&& w->widgets[WC_TRACK_DESIGN_PLACE__WIDX_ROTATE].type != WindowWidgetType::Empty)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(w, WC_TRACK_DESIGN_PLACE__WIDX_ROTATE);
return;
}
2015-04-01 21:23:05 +01:00
2017-06-06 23:24:18 +02:00
// Rotate park entrance
w = window_find_by_class(WC_MAP);
if (w != nullptr && !WidgetIsDisabled(w, WC_MAP__WIDX_ROTATE_90)
&& w->widgets[WC_MAP__WIDX_ROTATE_90].type != WindowWidgetType::Empty)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(w, WC_MAP__WIDX_ROTATE_90);
return;
}
// Rotate selected element in tile inspector
w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_ROTATE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_ROTATE].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_ROTATE);
return;
}
}
static void ShortcutUndergroundViewToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_UNDERGROUND_INSIDE);
}
static void ShortcutRemoveBaseLandToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_HIDE_BASE);
}
static void ShortcutRemoveVerticalLandToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_HIDE_VERTICAL);
}
static void ShortcutRemoveTopBottomToolbarToggle()
2015-06-26 17:01:50 +02:00
{
2017-10-10 10:52:48 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
{
2018-01-04 06:58:44 +01:00
if (window_find_by_class(WC_TITLE_LOGO) != nullptr)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_close(window_find_by_class(WC_TITLE_LOGO));
window_close(window_find_by_class(WC_TITLE_OPTIONS));
window_close(window_find_by_class(WC_TITLE_MENU));
window_close(window_find_by_class(WC_TITLE_EXIT));
2017-07-22 23:42:14 +01:00
title_set_hide_version_info(true);
2017-10-10 10:52:48 +02:00
}
else
{
2017-06-06 23:24:18 +02:00
title_create_windows();
}
2017-10-10 10:52:48 +02:00
}
else
{
2018-01-04 06:58:44 +01:00
if (window_find_by_class(WC_TOP_TOOLBAR) != nullptr)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_close(window_find_by_class(WC_DROPDOWN));
window_close(window_find_by_class(WC_TOP_TOOLBAR));
window_close(window_find_by_class(WC_BOTTOM_TOOLBAR));
2017-10-10 10:52:48 +02:00
}
else
{
if (gScreenFlags == 0)
{
2017-11-11 02:57:45 +01:00
context_open_window(WC_TOP_TOOLBAR);
2017-11-15 02:11:25 +01:00
context_open_window(WC_BOTTOM_TOOLBAR);
2017-10-10 10:52:48 +02:00
}
else
{
2017-11-11 02:57:45 +01:00
context_open_window(WC_TOP_TOOLBAR);
2017-11-15 02:29:34 +01:00
context_open_window_view(WV_EDITOR_BOTTOM_TOOLBAR);
2017-06-06 23:24:18 +02:00
}
}
}
gfx_invalidate_screen();
2015-06-26 17:01:50 +02:00
}
static void ShortcutSeeThroughRidesToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_SEETHROUGH_RIDES);
}
static void ShortcutSeeThroughSceneryToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_SEETHROUGH_SCENERY);
}
static void ShortcutSeeThroughPathsToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_SEETHROUGH_PATHS);
}
static void ShortcutInvisibleSupportsToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_INVISIBLE_SUPPORTS);
}
static void ShortcutInvisiblePeopleToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_INVISIBLE_PEEPS);
}
static void ShortcutGridlinesToggle()
{
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_GRIDLINES);
}
static void ShortcutHeightMarksOnLandToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_LAND_HEIGHTS);
}
static void ShortcutHeightMarksOnRideTracksToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_TRACK_HEIGHTS);
}
static void ShortcutHeightMarksOnPathsToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_PATH_HEIGHTS);
}
static void ShortcutAdjustLand()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-10-10 10:52:48 +02:00
{
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_TOP_TOOLBAR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
window->Invalidate();
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_LAND);
}
}
}
}
static void ShortcutAdjustWater()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-10-10 10:52:48 +02:00
{
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_TOP_TOOLBAR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
window->Invalidate();
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_WATER);
}
}
}
}
static void ShortcutBuildScenery()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-10-10 10:52:48 +02:00
{
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_TOP_TOOLBAR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
window->Invalidate();
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_SCENERY);
}
}
}
}
static void ShortcutBuildPaths()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-10-10 10:52:48 +02:00
{
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_TOP_TOOLBAR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
window->Invalidate();
2017-06-06 23:24:18 +02:00
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_PATH);
}
}
}
}
static void ShortcutBuildNewRide()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-10-10 10:52:48 +02:00
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR))
{
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2017-10-07 01:28:00 +02:00
context_open_window(WC_CONSTRUCT_RIDE);
2017-06-06 23:24:18 +02:00
}
}
}
static void ShortcutShowFinancialInformation()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
if (!(gParkFlags & PARK_FLAGS_NO_MONEY))
2017-09-05 20:55:18 +02:00
context_open_window(WC_FINANCES);
}
static void ShortcutShowResearchInformation()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2019-03-20 20:58:08 +01:00
if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
2017-10-10 10:52:48 +02:00
{
2017-10-07 01:28:00 +02:00
context_open_window_view(WV_RIDE_RESEARCH);
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutShowRidesList()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2019-03-20 20:58:08 +01:00
if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
2017-10-10 10:52:48 +02:00
{
2017-10-08 22:15:41 +02:00
context_open_window(WC_RIDE_LIST);
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutShowParkInformation()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2019-03-20 20:58:08 +01:00
if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
2017-10-10 10:52:48 +02:00
{
2017-09-05 20:55:18 +02:00
context_open_window(WC_PARK_INFORMATION);
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutShowGuestList()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2019-03-20 20:58:08 +01:00
if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
2017-10-10 10:52:48 +02:00
{
2017-09-10 11:02:16 +02:00
context_open_window(WC_GUEST_LIST);
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutShowStaffList()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2019-03-20 20:58:08 +01:00
if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
2017-10-10 10:52:48 +02:00
{
2017-08-12 23:06:12 +02:00
context_open_window(WC_STAFF_LIST);
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutShowRecentMessages()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2019-03-20 20:58:08 +01:00
if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
2017-08-06 05:22:00 +02:00
context_open_window(WC_RECENT_NEWS);
}
static void ShortcutShowMap()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-06-06 23:24:18 +02:00
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
2017-10-06 23:03:48 +02:00
context_open_window(WC_MAP);
}
static void ShortcutScreenshot()
{
2017-06-06 23:24:18 +02:00
gScreenshotCountdown = 2;
}
static void ShortcutReduceGameSpeed()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
if (network_get_mode() == NETWORK_MODE_NONE)
game_reduce_game_speed();
}
static void ShortcutIncreaseGameSpeed()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
if (network_get_mode() == NETWORK_MODE_NONE)
game_increase_game_speed();
}
static void ShortcutOpenCheatWindow()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags != SCREEN_FLAGS_PLAYING)
return;
2017-06-06 23:24:18 +02:00
// Check if window is already open
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_CHEATS);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_close(window);
return;
}
2017-08-06 05:22:00 +02:00
context_open_window(WC_CHEATS);
}
static void ShortcutClearScenery()
{
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-10-10 10:52:48 +02:00
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || gS6Info.editor_step == EditorStep::LandscapeEditor)
2017-10-10 10:52:48 +02:00
{
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_TOP_TOOLBAR);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
window->Invalidate();
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_CLEAR_SCENERY);
}
}
}
}
static void ShortcutOpenChatWindow()
2015-02-12 16:23:49 +00:00
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
chat_toggle();
2015-02-12 16:23:49 +00:00
}
static void ShortcutQuickSaveGame()
{
2017-06-06 23:24:18 +02:00
// Do a quick save in playing mode and a regular save in Scenario Editor mode. In other cases, don't do anything.
2017-10-10 10:52:48 +02:00
if (gScreenFlags == SCREEN_FLAGS_PLAYING)
{
2017-06-06 23:24:18 +02:00
tool_cancel();
save_game();
}
2017-10-10 10:52:48 +02:00
else if (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR)
{
2018-02-05 22:59:44 +01:00
auto intent = Intent(WC_LOADSAVE);
intent.putExtra(INTENT_EXTRA_LOADSAVE_TYPE, LOADSAVETYPE_SAVE | LOADSAVETYPE_LANDSCAPE);
2018-06-22 23:20:31 +02:00
intent.putExtra(INTENT_EXTRA_PATH, std::string{ gS6Info.name });
2018-02-05 22:59:44 +01:00
context_open_intent(&intent);
2017-06-06 23:24:18 +02:00
}
}
static void ShortcutShowOptions()
{
2017-08-06 05:22:00 +02:00
context_open_window(WC_OPTIONS);
}
static void ShortcutMuteSound()
2016-03-05 00:43:38 +01:00
{
2020-10-07 00:34:42 +03:00
OpenRCT2::Audio::ToggleAllSounds();
2016-03-05 00:43:38 +01:00
}
static void ShortcutWindowsModeToggle()
{
2017-06-06 23:24:18 +02:00
platform_toggle_windowed_mode();
}
static void ShortcutShowMultiplayer()
{
2017-06-06 23:24:18 +02:00
if (network_get_mode() != NETWORK_MODE_NONE)
2017-08-06 05:22:00 +02:00
context_open_window(WC_MULTIPLAYER);
}
static void ShortcutDebugPaintToggle()
2016-07-25 23:49:39 +02:00
{
2018-06-22 23:20:31 +02:00
rct_window* window = window_find_by_class(WC_DEBUG_PAINT);
2018-01-04 06:58:44 +01:00
if (window != nullptr)
2017-10-10 10:52:48 +02:00
{
2017-06-06 23:24:18 +02:00
window_close(window);
2017-10-10 10:52:48 +02:00
}
else
{
2017-08-06 05:22:00 +02:00
context_open_window(WC_DEBUG_PAINT);
2017-06-06 23:24:18 +02:00
}
2016-07-25 23:49:39 +02:00
}
static void ShortcutRideConstructionTurnLeft()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_turn_left();
}
static void ShortcutRideConstructionTurnRight()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_turn_right();
}
static void ShortcutRideConstructionUseTrackDefault()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_use_track_default();
}
static void ShortcutRideConstructionSlopeDown()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_slope_down();
}
static void ShortcutRideConstructionSlopeUp()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_slope_up();
}
static void ShortcutRideConstructionChainLiftToggle()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_chain_lift_toggle();
}
static void ShortcutRideConstructionBankLeft()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_bank_left();
}
static void ShortcutRideConstructionBankRight()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_bank_right();
}
static void ShortcutRideConstructionPreviousTrack()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_previous_track();
}
static void ShortcutRideConstructionNextTrack()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_next_track();
}
static void ShortcutRideConstructionBuildCurrent()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_build_current();
}
static void ShortcutRideConstructionDemolishCurrent()
{
2017-06-06 23:24:18 +02:00
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
2017-06-06 23:24:18 +02:00
window_ride_construction_keyboard_shortcut_demolish_current();
}
static void ShortcutLoadGame()
2017-06-18 13:32:12 -04:00
{
2017-10-10 10:52:48 +02:00
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
{
2019-02-21 09:34:30 +00:00
auto loadOrQuitAction = LoadOrQuitAction(LoadOrQuitModes::OpenSavePrompt);
GameActions::Execute(&loadOrQuitAction);
2017-06-18 13:32:12 -04:00
}
}
static void ShortcutViewClipping()
{
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
context_open_window(WC_VIEW_CLIPPING);
}
static void ShortcutHighlightPathIssuesToggle()
{
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
return;
ToggleViewFlag(VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES);
}
static void ShortcutOpenTileInspector()
{
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO || !gConfigInterface.toolbar_show_cheats)
return;
context_open_window(WC_TILE_INSPECTOR);
}
static void ShortcutAdvanceToNextTick()
{
if (gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_MANAGER))
return;
gDoSingleUpdate = true;
}
static void ShortcutOpenSceneryPicker()
2019-03-24 16:45:42 -05:00
{
if ((gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER))
|| (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR && gS6Info.editor_step != EditorStep::LandscapeEditor))
2019-03-24 16:45:42 -05:00
return;
rct_window* window_scenery = window_find_by_class(WC_SCENERY);
if (window_scenery == nullptr)
{
rct_window* window_toolbar = window_find_by_class(WC_TOP_TOOLBAR);
if (window_toolbar != nullptr)
{
window_toolbar->Invalidate();
2019-03-24 16:45:42 -05:00
window_event_mouse_up_call(window_toolbar, WC_TOP_TOOLBAR__WIDX_SCENERY);
}
}
window_scenery = window_find_by_class(WC_SCENERY);
2020-11-03 14:29:22 -07:00
if (window_scenery != nullptr && !WidgetIsDisabled(window_scenery, WC_SCENERY__WIDX_SCENERY_EYEDROPPER_BUTTON)
&& window_scenery->widgets[WC_SCENERY__WIDX_SCENERY_EYEDROPPER_BUTTON].type != WindowWidgetType::Empty
2019-03-24 16:45:42 -05:00
&& !gWindowSceneryEyedropperEnabled)
{
window_event_mouse_up_call(window_scenery, WC_SCENERY__WIDX_SCENERY_EYEDROPPER_BUTTON);
return;
}
}
static void ShortcutScaleUp()
{
gConfigGeneral.window_scale += 0.25f;
config_save_default();
gfx_invalidate_screen();
context_trigger_resize();
context_update_cursor_scale();
}
static void ShortcutScaleDown()
{
gConfigGeneral.window_scale -= 0.25f;
gConfigGeneral.window_scale = std::max(0.5f, gConfigGeneral.window_scale);
config_save_default();
gfx_invalidate_screen();
context_trigger_resize();
context_update_cursor_scale();
}
// Tile inspector shortcuts
static void ShortcutInsertCorruptElement()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_CORRUPT)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_CORRUPT].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_CORRUPT);
return;
}
}
static void ShortcutCopyElement()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_COPY)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_COPY].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_COPY);
return;
}
}
static void ShortcutPasteElement()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_PASTE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_PASTE].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_PASTE);
return;
}
}
static void ShortcutRemoveElement()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_REMOVE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_REMOVE].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_REMOVE);
return;
}
}
static void ShortcutMoveElementUp()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_MOVE_UP)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_MOVE_UP].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_MOVE_UP);
return;
}
}
static void ShortcutMoveElementDown()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_BUTTON_MOVE_DOWN)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_BUTTON_MOVE_DOWN].type != WindowWidgetType::Empty)
{
window_event_mouse_up_call(w, WC_TILE_INSPECTOR__WIDX_BUTTON_MOVE_DOWN);
return;
}
}
static void ShortcutIncreaseXCoord()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_SPINNER_X_INCREASE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_SPINNER_X_INCREASE].type != WindowWidgetType::Empty)
{
window_event_mouse_down_call(w, WC_TILE_INSPECTOR__WIDX_SPINNER_X_INCREASE);
return;
}
}
static void ShortcutDecreaseXCoord()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_SPINNER_X_DECREASE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_SPINNER_X_DECREASE].type != WindowWidgetType::Empty)
{
window_event_mouse_down_call(w, WC_TILE_INSPECTOR__WIDX_SPINNER_X_DECREASE);
return;
}
}
static void ShortcutIncreaseYCoord()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_SPINNER_Y_INCREASE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_SPINNER_Y_INCREASE].type != WindowWidgetType::Empty)
{
window_event_mouse_down_call(w, WC_TILE_INSPECTOR__WIDX_SPINNER_Y_INCREASE);
return;
}
}
static void ShortcutDecreaseYCoord()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
2020-11-03 14:29:22 -07:00
if (w != nullptr && !WidgetIsDisabled(w, WC_TILE_INSPECTOR__WIDX_SPINNER_Y_DECREASE)
&& w->widgets[WC_TILE_INSPECTOR__WIDX_SPINNER_Y_DECREASE].type != WindowWidgetType::Empty)
{
window_event_mouse_down_call(w, WC_TILE_INSPECTOR__WIDX_SPINNER_Y_DECREASE);
return;
}
}
static void ShortcutIncreaseElementHeight()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
if (w != nullptr)
{
int action = -1;
switch (w->tileInspectorPage)
{
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_SURFACE:
action = WC_TILE_INSPECTOR__WIDX_SURFACE_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_PATH:
action = WC_TILE_INSPECTOR__WIDX_PATH_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_TRACK:
action = WC_TILE_INSPECTOR__WIDX_TRACK_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_SCENERY:
action = WC_TILE_INSPECTOR__WIDX_SCENERY_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_ENTRANCE:
action = WC_TILE_INSPECTOR__WIDX_ENTRANCE_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_WALL:
action = WC_TILE_INSPECTOR__WIDX_WALL_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_LARGE_SCENERY:
action = WC_TILE_INSPECTOR__WIDX_LARGE_SCENERY_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_BANNER:
action = WC_TILE_INSPECTOR__WIDX_BANNER_SPINNER_HEIGHT_INCREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_CORRUPT:
action = WC_TILE_INSPECTOR__WIDX_CORRUPT_SPINNER_HEIGHT_INCREASE;
break;
case TileInspectorPage::Default:
break;
}
if (action != -1 && !WidgetIsDisabled(w, action) && w->widgets[action].type != WindowWidgetType::Empty)
window_event_mouse_down_call(w, action);
return;
}
}
static void ShortcutDecreaseElementHeight()
{
rct_window* w = window_find_by_class(WC_TILE_INSPECTOR);
if (w != nullptr)
{
int action = -1;
switch (w->tileInspectorPage)
{
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_SURFACE:
action = WC_TILE_INSPECTOR__WIDX_SURFACE_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_PATH:
action = WC_TILE_INSPECTOR__WIDX_PATH_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_TRACK:
action = WC_TILE_INSPECTOR__WIDX_TRACK_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_SCENERY:
action = WC_TILE_INSPECTOR__WIDX_SCENERY_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_ENTRANCE:
action = WC_TILE_INSPECTOR__WIDX_ENTRANCE_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_WALL:
action = WC_TILE_INSPECTOR__WIDX_WALL_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_LARGE_SCENERY:
action = WC_TILE_INSPECTOR__WIDX_LARGE_SCENERY_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_BANNER:
action = WC_TILE_INSPECTOR__WIDX_BANNER_SPINNER_HEIGHT_DECREASE;
break;
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_CORRUPT:
action = WC_TILE_INSPECTOR__WIDX_CORRUPT_SPINNER_HEIGHT_DECREASE;
break;
case TileInspectorPage::Default:
break;
}
if (action != -1 && !WidgetIsDisabled(w, action) && w->widgets[action].type != WindowWidgetType::Empty)
window_event_mouse_down_call(w, action);
return;
}
}
static void ShortcutToggleClearanceChecks()
{
2020-05-30 23:42:42 +02:00
auto setCheatAction = SetCheatAction(CheatType::DisableClearanceChecks, gCheatsDisableClearanceChecks ? 0 : 1);
GameActions::Execute(&setCheatAction);
}
2017-10-10 10:52:48 +02:00
namespace
{
using namespace OpenRCT2::Input;
const shortcut_action shortcut_table[ShortcutsCount] = {
ShortcutCloseTopMostWindow,
ShortcutCloseAllFloatingWindow,
ShortcutCancelConstructionMode,
ShortcutPauseGame,
ShortcutZoomViewOut,
ShortcutZoomViewIn,
ShortcutRotateViewClockwise,
ShortcutRotateViewAnticlockwise,
ShortcutRotateConstructionObject,
ShortcutUndergroundViewToggle,
ShortcutRemoveBaseLandToggle,
ShortcutRemoveVerticalLandToggle,
ShortcutSeeThroughRidesToggle,
ShortcutSeeThroughSceneryToggle,
ShortcutInvisibleSupportsToggle,
ShortcutInvisiblePeopleToggle,
ShortcutHeightMarksOnLandToggle,
ShortcutHeightMarksOnRideTracksToggle,
ShortcutHeightMarksOnPathsToggle,
ShortcutAdjustLand,
ShortcutAdjustWater,
ShortcutBuildScenery,
ShortcutBuildPaths,
ShortcutBuildNewRide,
ShortcutShowFinancialInformation,
ShortcutShowResearchInformation,
ShortcutShowRidesList,
ShortcutShowParkInformation,
ShortcutShowGuestList,
ShortcutShowStaffList,
ShortcutShowRecentMessages,
ShortcutShowMap,
ShortcutScreenshot,
2015-06-26 17:26:29 +02:00
// new
ShortcutReduceGameSpeed,
ShortcutIncreaseGameSpeed,
ShortcutOpenCheatWindow,
ShortcutRemoveTopBottomToolbarToggle,
2018-01-04 06:58:44 +01:00
nullptr,
nullptr,
nullptr,
nullptr,
ShortcutOpenChatWindow,
ShortcutQuickSaveGame,
ShortcutShowOptions,
ShortcutMuteSound,
ShortcutWindowsModeToggle,
ShortcutShowMultiplayer,
2018-06-07 19:00:48 +01:00
nullptr,
ShortcutDebugPaintToggle,
ShortcutSeeThroughPathsToggle,
ShortcutRideConstructionTurnLeft,
ShortcutRideConstructionTurnRight,
ShortcutRideConstructionUseTrackDefault,
ShortcutRideConstructionSlopeDown,
ShortcutRideConstructionSlopeUp,
ShortcutRideConstructionChainLiftToggle,
ShortcutRideConstructionBankLeft,
ShortcutRideConstructionBankRight,
ShortcutRideConstructionPreviousTrack,
ShortcutRideConstructionNextTrack,
ShortcutRideConstructionBuildCurrent,
ShortcutRideConstructionDemolishCurrent,
ShortcutLoadGame,
ShortcutClearScenery,
ShortcutGridlinesToggle,
ShortcutViewClipping,
ShortcutHighlightPathIssuesToggle,
ShortcutOpenTileInspector,
ShortcutAdvanceToNextTick,
ShortcutOpenSceneryPicker,
ShortcutScaleUp,
ShortcutScaleDown,
ShortcutInsertCorruptElement,
ShortcutCopyElement,
ShortcutPasteElement,
ShortcutRemoveElement,
ShortcutMoveElementUp,
ShortcutMoveElementDown,
ShortcutIncreaseXCoord,
ShortcutDecreaseXCoord,
ShortcutIncreaseYCoord,
ShortcutDecreaseYCoord,
ShortcutIncreaseElementHeight,
ShortcutDecreaseElementHeight,
ShortcutToggleClearanceChecks,
};
2018-05-04 22:40:09 +02:00
} // anonymous namespace
#pragma endregion