mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add shortcut definition for 'View Path Issues' and 'Cutaway View'
This commit is contained in:
parent
44e893ab53
commit
674e094b3a
|
@ -4539,6 +4539,8 @@ STR_6229 :{WINDOW_COLOUR_2}{STRINGID}: {STRINGID}
|
|||
STR_6230 :{STRINGID}: {MOVE_X}{185}{STRINGID}
|
||||
STR_6231 :{WINDOW_COLOUR_2}{STRINGID}: {MOVE_X}{185}{STRINGID}
|
||||
STR_6232 :Frozen
|
||||
STR_6233 :Cut-away view
|
||||
STR_6234 :Highlight path issues
|
||||
|
||||
#############
|
||||
# Scenarios #
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
------------------------------------------------------------------------
|
||||
- Feature: [#7187] Option for early scenario completion.
|
||||
- Feature: [#7267] Leverage more historical data in Finances window.
|
||||
- Feature: [#7332] Keyboard shortcuts for view path issues and cutaway view.
|
||||
- Improved: Raising land near the map edge makes the affected area smaller instead of showing an 'off edge map' error.
|
||||
|
||||
0.1.2 (2018-03-18)
|
||||
|
|
|
@ -746,6 +746,22 @@ static void shortcut_load_game()
|
|||
}
|
||||
}
|
||||
|
||||
static void shortcut_view_clipping()
|
||||
{
|
||||
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
|
||||
return;
|
||||
|
||||
context_open_window(WC_VIEW_CLIPPING);
|
||||
}
|
||||
|
||||
static void shortcut_highlight_path_issues_toggle()
|
||||
{
|
||||
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
|
||||
return;
|
||||
|
||||
toggle_view_flag(VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES);
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
const shortcut_action shortcut_table[SHORTCUT_COUNT] =
|
||||
|
@ -817,6 +833,8 @@ namespace
|
|||
shortcut_load_game,
|
||||
shortcut_clear_scenery,
|
||||
shortcut_gridlines_toggle,
|
||||
shortcut_view_clipping,
|
||||
shortcut_highlight_path_issues_toggle,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -305,4 +305,6 @@ const uint16 KeyboardShortcuts::DefaultKeys[SHORTCUT_COUNT] =
|
|||
PLATFORM_MODIFIER | SDL_SCANCODE_L, // SHORTCUT_LOAD_GAME
|
||||
SDL_SCANCODE_B, // SHORTCUT_CLEAR_SCENERY
|
||||
SDL_SCANCODE_7, // SHORTCUT_GRIDLINES_DISPLAY_TOGGLE
|
||||
SHORTCUT_UNDEFINED, // SHORTCUT_VIEW_CLIPPING
|
||||
SDL_SCANCODE_I, // SHORTCUT_HIGHLIGHT_PATH_ISSUES_TOGGLE
|
||||
};
|
||||
|
|
|
@ -97,6 +97,8 @@ enum
|
|||
SHORTCUT_LOAD_GAME,
|
||||
SHORTCUT_CLEAR_SCENERY,
|
||||
SHORTCUT_GRIDLINES_DISPLAY_TOGGLE,
|
||||
SHORTCUT_VIEW_CLIPPING,
|
||||
SHORTCUT_HIGHLIGHT_PATH_ISSUES_TOGGLE,
|
||||
|
||||
SHORTCUT_COUNT,
|
||||
|
||||
|
|
|
@ -153,6 +153,8 @@ const rct_string_id ShortcutStringIds[SHORTCUT_COUNT] = {
|
|||
STR_LOAD_GAME,
|
||||
STR_SHORTCUT_CLEAR_SCENERY,
|
||||
STR_SHORTCUT_GRIDLINES_DISPLAY_TOGGLE,
|
||||
STR_SHORTCUT_VIEW_CLIPPING,
|
||||
STR_SHORTCUT_HIGHLIGHT_PATH_ISSUES_TOGGLE,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -3897,6 +3897,9 @@ enum {
|
|||
|
||||
STR_FROZEN = 6232,
|
||||
|
||||
STR_SHORTCUT_VIEW_CLIPPING = 6233,
|
||||
STR_SHORTCUT_HIGHLIGHT_PATH_ISSUES_TOGGLE = 6234,
|
||||
|
||||
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||
STR_COUNT = 32768
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue