-
Notifications
You must be signed in to change notification settings - Fork 2
Callback
Crutiatix edited this page May 6, 2017
·
3 revisions
Callbacks can be set just like normal attributes or directly to element. First argument of function refers to the reference of self element.
-
- onClick = button is clicked down
- onCleanRelease = button is cleanly released (mouse is inside the button)
- onRelease = button is released (mouse can be outside the button, for instance if the user tries to drag it)
- onPress = button is hold (called every frame)
- onStartHover = mouse has started hovering the button
- onHover = mouse is hovering the button (called every frame)
- onReleaseHover = mouse is not hovering anymore
- v0.8.0
- added reference to element by first argument of function
- v0.6.0
- renamed onHold to onPress