mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Fix #13431: [Plugin] UI disabled widgets can still be interacted with.
This commit is contained in:
@@ -1014,6 +1014,18 @@ void WidgetSetEnabled(rct_window* w, rct_widgetindex widgetIndex, bool enabled)
|
||||
}
|
||||
}
|
||||
|
||||
void WidgetSetDisabled(rct_window* w, rct_widgetindex widgetIndex, bool value)
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
w->disabled_widgets |= (1ULL << widgetIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
w->disabled_widgets &= ~(1ULL << widgetIndex);
|
||||
}
|
||||
}
|
||||
|
||||
void WidgetSetCheckboxValue(rct_window* w, rct_widgetindex widgetIndex, int32_t value)
|
||||
{
|
||||
if (value)
|
||||
|
||||
Reference in New Issue
Block a user