1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Move Ui header items to OpenRCT2::Ui (#21546)

* Move ui definitions to ui project

* Enforce coding style

* Apply clang format

* Add clang tidy ignore

* Increase compiler happiness
This commit is contained in:
Duncan
2024-03-09 14:15:45 +00:00
committed by GitHub
parent 0c1fb5fec0
commit 3146d463bd
82 changed files with 375 additions and 360 deletions

View File

@@ -508,11 +508,11 @@ namespace OpenRCT2::Ui::Windows
if (listView.GetScrollbars() == ScrollbarType::Horizontal
|| listView.GetScrollbars() == ScrollbarType::Both)
{
wheight -= SCROLLBAR_WIDTH + 1;
wheight -= kScrollBarWidth + 1;
}
if (listView.GetScrollbars() == ScrollbarType::Vertical || listView.GetScrollbars() == ScrollbarType::Both)
{
wwidth -= SCROLLBAR_WIDTH + 1;
wwidth -= kScrollBarWidth + 1;
}
listView.Resize({ wwidth, wheight });
scrollIndex++;
@@ -931,7 +931,7 @@ namespace OpenRCT2::Ui::Windows
}
}
widgetList.push_back(WIDGETS_END);
widgetList.push_back(kWidgetsEnd);
widgets = widgetList.data();
WindowInitScrollWidgets(*this);