mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Rename WindowWidgetType to WidgetType and change for new code style
This commit is contained in:
@@ -1184,7 +1184,7 @@ public:
|
||||
{
|
||||
const auto& widget = w.widgets[i];
|
||||
|
||||
if (widget.type != WindowWidgetType::Empty && widget.IsVisible())
|
||||
if (widget.type != WidgetType::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)
|
||||
@@ -1198,7 +1198,7 @@ public:
|
||||
if (widget_index != kWidgetIndexNull)
|
||||
{
|
||||
const auto& widget = w.widgets[widget_index];
|
||||
if (widget.type == WindowWidgetType::DropdownMenu)
|
||||
if (widget.type == WidgetType::dropdownMenu)
|
||||
widget_index++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user