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

CustomWindow: change spinner button order to match internal windows

This commit is contained in:
Aaron van Geffen
2024-05-22 19:59:16 +02:00
parent 57bdae9d49
commit 10c97c6599

View File

@@ -1062,25 +1062,25 @@ namespace OpenRCT2::Ui::Windows
widget.flags |= WIDGET_FLAGS::TEXT_IS_STRING;
widgetList.push_back(widget);
// Add the decrement button
// Add the increment button
widget = {};
widget.type = WindowWidgetType::Button;
widget.colour = 1;
widget.left = desc.X + desc.Width - 26;
widget.right = widget.left + 12;
widget.left = desc.X + desc.Width - 13;
widget.right = widget.left + 11;
widget.top = desc.Y + 1;
widget.bottom = desc.Y + desc.Height - 2;
widget.text = STR_NUMERIC_DOWN;
widget.text = STR_NUMERIC_UP;
widget.tooltip = STR_NONE;
if (desc.IsDisabled)
widget.flags |= WIDGET_FLAGS::IS_DISABLED;
widget.flags |= WIDGET_FLAGS::IS_HOLDABLE;
widgetList.push_back(widget);
// Add the increment button
widget.left = desc.X + desc.Width - 13;
widget.right = widget.left + 11;
widget.text = STR_NUMERIC_UP;
// Add the decrement button
widget.left = desc.X + desc.Width - 26;
widget.right = widget.left + 12;
widget.text = STR_NUMERIC_DOWN;
widgetList.push_back(widget);
}
else if (desc.Type == "textbox")