1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix widgets not redrawing correctly when updating disabled/visible state

This commit is contained in:
Basssiiie
2024-01-16 14:05:21 +00:00
parent 5221e8ee9f
commit cc7c528885
2 changed files with 3 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
- Fix: [#20255] Images from the last hovered-over coaster in the object selection are not freed.
- Fix: [#20616] Confirmation button in the track designers quit prompt has the wrong text.
- Fix: [#21145] [Plugin] setInterval/setTimeout handle conflict.
- Fix: [#21157] [Plugin] Widgets do not redraw correctly when updating disabled or visibility state.
- Fix: [#21158] [Plugin] Potential crash using setInterval/setTimeout within the callback.
- Fix: [#21171] [Plugin] Crash creating entities with no more entity slots available.
- Fix: [#21178] Inca Lost Citys scenario description incorrectly states there are height restrictions.

View File

@@ -323,6 +323,7 @@ namespace OpenRCT2::Scripting
WidgetSetDisabled(*w, _widgetIndex + 2, value);
}
}
Invalidate(widget);
}
}
@@ -355,6 +356,7 @@ namespace OpenRCT2::Scripting
WidgetSetVisible(*w, _widgetIndex + 2, value);
}
}
Invalidate(widget);
}
}