fix: set hovered, active properly
These were not implemented correctly. Works now as long as you set them before creating the widgets in update().
This commit is contained in:
parent
1767782603
commit
33346148c6
1 changed files with 2 additions and 2 deletions
4
core.lua
4
core.lua
|
@ -38,7 +38,7 @@ end
|
|||
|
||||
-- gui state
|
||||
function suit:setHovered(id)
|
||||
return self.hovered ~= id
|
||||
self.hovered = id
|
||||
end
|
||||
|
||||
function suit:anyHovered()
|
||||
|
@ -54,7 +54,7 @@ function suit:wasHovered(id)
|
|||
end
|
||||
|
||||
function suit:setActive(id)
|
||||
return self.active ~= nil
|
||||
self.active = id
|
||||
end
|
||||
|
||||
function suit:anyActive()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue