[2.1.12] LuaGuiElement clicked_sprite and hovered_sprite overwrite each other
Posted: Tue Aug 04, 2026 11:54 am
Steps to reproduce:
At this point both hovering and clicking use the "utility/add" icon. This is fine as clicked_sprite is not set.
Now, both clicking and hovering shows "utility/search" icon, which is incorrect because hovered_sprite is still set to "utility/add".
Setting clicked and hovered in a different order also results in this issue.
Code: Select all
/c button = game.player.gui.screen.add{type = "sprite-button"}
/c button.sprite = "utility/close"
/c button.hovered_sprite = "utility/add"
Code: Select all
/c button.clicked_sprite = "utility/search"
Setting clicked and hovered in a different order also results in this issue.