[Rseding91] [2.0.42] LuaGuiElement doesn't update layout after toggling visibility
[Rseding91] [2.0.42] LuaGuiElement doesn't update layout after toggling visibility
On top of the layout being incorrect, the "Claim Hex" button is not clickable and its color does not change on hover (when it should).
Sometimes, it is possible to press Ctrl+F5 to force it to update the layout, which then fixes it and makes the button clickable, but that doesn't work every time. There was a time when the game autosaved, and then Ctrl+F5 worked. (yes, this is a very strange bug)
What happened from clean layout to the broken layout was that the button and the flow with the sprite button were set to visible = false. Upon setting them back to visible = true, the whole layout is incorrect.
Exact steps to reproduce:
1. Download and enable mod "Hextorio - Build in hexagons" (attached to this post)
2. Start a new game with default map and mod settings.
3. Tab past the intro dialogue.
4. Click on the "Hex Core" entity that you spawn inside of.
5. Click on the "Claim Hex" button.
(the elements become hidden)
6. Close the Hex Core / inventory GUI.
7. Enter map view.
8. Click on any of the newly spawned "Hex Core" entities to open their Hex Core GUI.
(the elements reappear, but the layout is not updated and the button can't be clicked)
9. Pressing Ctrl+F5 sometimes fixes the layout and makes the button become clickable again.
- Attachments
-
- hextorio_0.0.1.zip
- (1.39 MiB) Downloaded 11 times
Re: [Rseding91] [2.0.42] LuaGuiElement doesn't update layout after toggling visibility
Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.