1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Fix #13431: [Plugin] UI disabled widgets can still be interacted with.

This commit is contained in:
Ted John
2020-12-01 23:28:32 +00:00
parent acaa72cce8
commit a55bcff99c
5 changed files with 33 additions and 5 deletions

View File

@@ -871,6 +871,8 @@ namespace OpenRCT2::Ui::Windows
widget.text = STR_DROPDOWN_GLYPH;
widget.tooltip = STR_NONE;
widget.flags |= WIDGET_FLAGS::IS_ENABLED;
if (desc.IsDisabled)
widget.flags |= WIDGET_FLAGS::IS_DISABLED;
widgetList.push_back(widget);
}
else if (desc.Type == "groupbox")
@@ -917,6 +919,8 @@ namespace OpenRCT2::Ui::Windows
widget.text = STR_NUMERIC_DOWN;
widget.tooltip = STR_NONE;
widget.flags |= WIDGET_FLAGS::IS_ENABLED;
if (desc.IsDisabled)
widget.flags |= WIDGET_FLAGS::IS_DISABLED;
widgetList.push_back(widget);
// Add the increment button