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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user