mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Allow assigning a keyboard shortcut for opening the tile inspector (#7994)
* Allow assigning a keyboard shortcut for opening the tile inspector. * Only open when debug tools are enabled. * Add changelog entry
This commit is contained in:
committed by
Michał Janiszewski
parent
3e97b20025
commit
47eea292b5
@@ -749,6 +749,14 @@ static void shortcut_highlight_path_issues_toggle()
|
||||
toggle_view_flag(VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES);
|
||||
}
|
||||
|
||||
static void shortcut_open_tile_inspector()
|
||||
{
|
||||
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO || !gConfigGeneral.debugging_tools)
|
||||
return;
|
||||
|
||||
context_open_window(WC_TILE_INSPECTOR);
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
const shortcut_action shortcut_table[SHORTCUT_COUNT] = {
|
||||
@@ -821,6 +829,7 @@ namespace
|
||||
shortcut_gridlines_toggle,
|
||||
shortcut_view_clipping,
|
||||
shortcut_highlight_path_issues_toggle,
|
||||
shortcut_open_tile_inspector,
|
||||
};
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user