mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Implement group boxes
This commit is contained in:
@@ -137,7 +137,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
result.SelectedIndex = desc["selectedIndex"].as_int();
|
||||
result.OnChange = desc["onChange"];
|
||||
}
|
||||
else if (result.Type == "label")
|
||||
else if (result.Type == "groupbox" || result.Type == "label")
|
||||
{
|
||||
result.Text = ProcessString(desc["text"].as_string());
|
||||
}
|
||||
@@ -460,6 +460,13 @@ namespace OpenRCT2::Ui::Windows
|
||||
widget.flags |= WIDGET_FLAGS::IS_ENABLED;
|
||||
widgetList.push_back(widget);
|
||||
}
|
||||
else if (desc.Type == "groupbox")
|
||||
{
|
||||
widget.type = WWT_GROUPBOX;
|
||||
widget.string = (utf8*)desc.Text.c_str();
|
||||
widget.flags |= WIDGET_FLAGS::TEXT_IS_STRING;
|
||||
widgetList.push_back(widget);
|
||||
}
|
||||
else if (desc.Type == "label")
|
||||
{
|
||||
widget.type = WWT_LABEL;
|
||||
|
||||
Reference in New Issue
Block a user