1
0
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:
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

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