Skip to content

Callback

Crutiatix edited this page Apr 10, 2017 · 3 revisions

Callbacks can be set just like normal attributes or directly to element.

  • Methods:

    • 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)
    • onHold = button is held (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
Clone this wiki locally