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:
Russell Matney 2020-10-16 13:31:54 -04:00
parent 1767782603
commit 33346148c6

View file

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