TangentFoxy / Pop.Box

(ON HOLD) Pop.Box is an easy to use GUI library for the LÖVE engine, intended for rapid prototyping.
http://guard13007.github.io/Pop.Box/docs
MIT License
8 stars 4 forks source link

Implement "hovered" callback for elements #64

Open TangentFoxy opened 7 years ago

TangentFoxy commented 7 years ago

This replaces #21 as a better idea. Right now the system already detects when elements are hovered over, all it needs to do is check if they have a hovered function defined and call it with true or false depending on whether it was the previously hovered element or the newly hovered element.

This can be useful for animation or background color changes or other similar things to highlight what is being selected.

TangentFoxy commented 7 years ago

Note: There may be an issue where we are trying only on the lowest object in the hierarchy and we need to check multiple...