1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Refactor Widget to TitleCase (#13355)

This commit is contained in:
pizza2004
2020-11-03 14:29:22 -07:00
committed by GitHub
parent 1b55914c96
commit a5607da09d
36 changed files with 464 additions and 475 deletions

View File

@@ -471,7 +471,7 @@ namespace OpenRCT2::Ui::Windows
widget.flags ^= WIDGET_FLAGS::IS_PRESSED;
bool isChecked = widget.flags & WIDGET_FLAGS::IS_PRESSED;
widget_set_checkbox_value(w, widgetIndex, isChecked);
WidgetSetCheckboxValue(w, widgetIndex, isChecked);
std::vector<DukValue> args;
auto ctx = widgetDesc->OnChange.context();
@@ -579,7 +579,7 @@ namespace OpenRCT2::Ui::Windows
{
if (widget->type == WWT_SCROLL)
{
widget_scroll_update_thumbs(w, widgetIndex);
WidgetScrollUpdateThumbs(w, widgetIndex);
}
widgetIndex++;
}
@@ -685,7 +685,7 @@ namespace OpenRCT2::Ui::Windows
{
auto widgetIndex = static_cast<rct_widgetindex>(WIDX_TAB_0 + tabIndex);
auto widget = &w->widgets[widgetIndex];
if (widget_is_enabled(w, widgetIndex))
if (WidgetIsEnabled(w, widgetIndex))
{
auto leftTop = w->windowPos + tab.offset + ScreenCoordsXY{ widget->left, widget->top };
auto image = tab.imageFrameBase;