1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00

Rename remaining methods in Widget.h to lowerCamelCase

This commit is contained in:
Gymnasiast
2025-06-10 21:57:53 +02:00
parent dac097ce64
commit bd6ae5848c
34 changed files with 337 additions and 337 deletions

View File

@@ -478,7 +478,7 @@ namespace OpenRCT2::Ui::Windows
{
if (widget.type == WidgetType::scroll)
{
WidgetScrollUpdateThumbs(*this, widgetIndex);
widgetScrollUpdateThumbs(*this, widgetIndex);
}
widgetIndex++;
}
@@ -543,7 +543,7 @@ namespace OpenRCT2::Ui::Windows
if (viewport != nullptr)
{
auto widgetIndex = GetViewportWidgetIndex();
if (WidgetIsVisible(*this, widgetIndex.value_or(false)))
if (widgetIsVisible(*this, widgetIndex.value_or(false)))
{
WindowDrawViewport(rt, *this);
}
@@ -610,7 +610,7 @@ namespace OpenRCT2::Ui::Windows
widget.flags.flip(WidgetFlag::isPressed);
bool isChecked = widget.flags.has(WidgetFlag::isPressed);
WidgetSetCheckboxValue(*this, widgetIndex, isChecked);
widgetSetCheckboxValue(*this, widgetIndex, isChecked);
std::vector<DukValue> args;
auto ctx = widgetDesc->OnChange.context();
@@ -864,7 +864,7 @@ namespace OpenRCT2::Ui::Windows
{
auto widgetIndex = static_cast<WidgetIndex>(WIDX_TAB_0 + tabIndex);
auto widget = &widgets[widgetIndex];
if (WidgetIsVisible(*this, widgetIndex))
if (widgetIsVisible(*this, widgetIndex))
{
auto leftTop = windowPos + tab.offset + ScreenCoordsXY{ widget->left, widget->top };
auto image = tab.imageFrameBase;
@@ -1008,7 +1008,7 @@ namespace OpenRCT2::Ui::Windows
else if (desc.Type == "colourpicker")
{
widget.type = WidgetType::colourBtn;
widget.image = GetColourButtonImage(desc.Colour);
widget.image = getColourButtonImage(desc.Colour);
widgetList.push_back(widget);
}
else if (desc.Type == "custom")
@@ -1244,7 +1244,7 @@ namespace OpenRCT2::Ui::Windows
if (lastColour != colour && colour < COLOUR_COUNT)
{
customWidgetInfo->Colour = colour;
widget.image = GetColourButtonImage(colour);
widget.image = getColourButtonImage(colour);
auto* windowMgr = Ui::GetWindowManager();
windowMgr->InvalidateWidget(*w, widgetIndex);