mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Add widget visible flag
This commit is contained in:
@@ -435,7 +435,7 @@ rct_widgetindex window_find_widget_from_point(rct_window* w, const ScreenCoordsX
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (widget->type != WindowWidgetType::Empty)
|
||||
else if (widget->type != WindowWidgetType::Empty && widget->IsVisible())
|
||||
{
|
||||
if (screenCoords.x >= w->windowPos.x + widget->left && screenCoords.x <= w->windowPos.x + widget->right
|
||||
&& screenCoords.y >= w->windowPos.y + widget->top && screenCoords.y <= w->windowPos.y + widget->bottom)
|
||||
|
||||
Reference in New Issue
Block a user