mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
@@ -33,6 +33,7 @@
|
||||
#include <openrct2/title/TitleScreen.h>
|
||||
#include <openrct2/util/Util.h>
|
||||
#include <openrct2/windows/Intent.h>
|
||||
#include <openrct2/windows/tile_inspector.h>
|
||||
#include <openrct2/world/Park.h>
|
||||
#include <openrct2/world/Scenery.h>
|
||||
|
||||
@@ -947,7 +948,7 @@ static void ShortcutIncreaseElementHeight()
|
||||
if (w != nullptr)
|
||||
{
|
||||
int action = -1;
|
||||
switch (w->page)
|
||||
switch (w->tileInspectorPage)
|
||||
{
|
||||
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_SURFACE:
|
||||
action = WC_TILE_INSPECTOR__WIDX_SURFACE_SPINNER_HEIGHT_INCREASE;
|
||||
@@ -976,6 +977,8 @@ static void ShortcutIncreaseElementHeight()
|
||||
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);
|
||||
@@ -989,7 +992,7 @@ static void ShortcutDecreaseElementHeight()
|
||||
if (w != nullptr)
|
||||
{
|
||||
int action = -1;
|
||||
switch (w->page)
|
||||
switch (w->tileInspectorPage)
|
||||
{
|
||||
case WC_TILE_INSPECTOR__TILE_INSPECTOR_PAGE_SURFACE:
|
||||
action = WC_TILE_INSPECTOR__WIDX_SURFACE_SPINNER_HEIGHT_DECREASE;
|
||||
@@ -1018,6 +1021,8 @@ static void ShortcutDecreaseElementHeight()
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user