mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +01:00
Rename global window functions to TitleCase (#19167)
This commit is contained in:
@@ -455,7 +455,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
frame_no = 0;
|
||||
}
|
||||
widget_invalidate(*this, WIDX_TAB_0 + this->page);
|
||||
WidgetInvalidate(*this, WIDX_TAB_0 + this->page);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -537,7 +537,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto widgetIndex = GetViewportWidgetIndex();
|
||||
if (WidgetIsVisible(*this, widgetIndex.value_or(false)))
|
||||
{
|
||||
window_draw_viewport(&dpi, *this);
|
||||
WindowDrawViewport(&dpi, *this);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -576,7 +576,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
switch (widgetIndex)
|
||||
{
|
||||
case WIDX_CLOSE:
|
||||
window_close(*this);
|
||||
WindowClose(*this);
|
||||
break;
|
||||
default:
|
||||
{
|
||||
@@ -664,7 +664,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
else if (widgetDesc->Type == "textbox")
|
||||
{
|
||||
auto* text = const_cast<char*>(widgetDesc->Text.c_str());
|
||||
window_start_textbox(*this, widgetIndex, STR_STRING, text, widgetDesc->MaxLength + 1);
|
||||
WindowStartTextbox(*this, widgetIndex, STR_STRING, text, widgetDesc->MaxLength + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -764,8 +764,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
RefreshWidgets();
|
||||
|
||||
Invalidate();
|
||||
window_event_resize_call(this);
|
||||
window_event_invalidate_call(this);
|
||||
WindowEventResizeCall(this);
|
||||
WindowEventInvalidateCall(this);
|
||||
WindowInitScrollWidgets(*this);
|
||||
Invalidate();
|
||||
|
||||
@@ -1114,7 +1114,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
static rct_windownumber GetNewWindowNumber()
|
||||
{
|
||||
auto result = _nextWindowNumber++;
|
||||
while (window_find_by_number(WindowClass::Custom, result) != nullptr)
|
||||
while (WindowFindByNumber(WindowClass::Custom, result) != nullptr)
|
||||
{
|
||||
result++;
|
||||
}
|
||||
@@ -1204,7 +1204,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
customWidgetInfo->Text = value;
|
||||
w->widgets[widgetIndex].string = customWidgetInfo->Text.data();
|
||||
widget_invalidate(*w, widgetIndex);
|
||||
WidgetInvalidate(*w, widgetIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1238,7 +1238,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
customWidgetInfo->Colour = colour;
|
||||
widget.image = GetColourButtonImage(colour);
|
||||
widget_invalidate(*w, widgetIndex);
|
||||
WidgetInvalidate(*w, widgetIndex);
|
||||
|
||||
std::vector<DukValue> args;
|
||||
auto ctx = customWidgetInfo->OnChange.context();
|
||||
@@ -1283,7 +1283,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
}
|
||||
customWidgetInfo->SelectedIndex = selectedIndex;
|
||||
|
||||
widget_invalidate(*w, widgetIndex);
|
||||
WidgetInvalidate(*w, widgetIndex);
|
||||
|
||||
if (lastSelectedIndex != selectedIndex)
|
||||
{
|
||||
@@ -1434,7 +1434,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (w->custom_info != nullptr)
|
||||
{
|
||||
auto& info = GetInfo(w);
|
||||
auto scrollIndex = window_get_scroll_data_index(*w, widgetIndex);
|
||||
auto scrollIndex = WindowGetScrollDataIndex(*w, widgetIndex);
|
||||
if (scrollIndex < static_cast<int32_t>(info.ListViews.size()))
|
||||
{
|
||||
return &info.ListViews[scrollIndex];
|
||||
@@ -1489,7 +1489,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
for (auto& window : customWindows)
|
||||
{
|
||||
window_close(*window.get());
|
||||
WindowClose(*window.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user