forked from rosebudai/OpenRCT2-Web
Fix #13431: [Plugin] UI disabled widgets can still be interacted with.
This commit is contained in:
1 parent
acaa72cce8
commit
a55bcff99c
5 files changed
+33
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user