1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Implement group boxes

This commit is contained in:
Ted John
2020-02-15 14:19:11 +00:00
parent b1cf6fcf63
commit a9a67a7a7e
3 changed files with 26 additions and 4 deletions

View File

@@ -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;