1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Rename WindowWidgetType to WidgetType and change for new code style

This commit is contained in:
Gymnasiast
2025-06-10 19:55:12 +02:00
parent 149468406b
commit 650fa3ae2e
86 changed files with 2114 additions and 2153 deletions

View File

@@ -227,7 +227,7 @@ static constexpr float kWindowScrollLocations[][2] = {
for (i = 0; i < widget_index; i++)
{
const auto& widget = w.widgets[i];
if (widget.type == WindowWidgetType::Scroll)
if (widget.type == WidgetType::scroll)
result++;
}
return result;
@@ -832,7 +832,7 @@ static constexpr float kWindowScrollLocations[][2] = {
mainWind->height = height;
viewport->width = width;
viewport->height = height;
if (!mainWind->widgets.empty() && mainWind->widgets[WC_MAIN_WINDOW__0].type == WindowWidgetType::Viewport)
if (!mainWind->widgets.empty() && mainWind->widgets[WC_MAIN_WINDOW__0].type == WidgetType::viewport)
{
mainWind->widgets[WC_MAIN_WINDOW__0].right = width;
mainWind->widgets[WC_MAIN_WINDOW__0].bottom = height;