Module druid.button

Component to handle basic GUI button

Functions

init(self, node, callback[, params[, anim_node[, event]]]) Component init function
disable_animation(self) Disable all button animations
set_click_zone(self, zone) Strict button click area.


Functions

init(self, node, callback[, params[, anim_node[, event]]])
Component init function

Parameters:

  • self table Component instance
  • node node Gui node
  • callback function Button callback
  • params table Button callback params (optional)
  • anim_node node Button anim node (node, if not provided) (optional)
  • event string Button react event, const.ACTION_TOUCH by default (optional)
disable_animation(self)
Disable all button animations

Parameters:

  • self table Component instance
set_click_zone(self, zone)
Strict button click area. Useful for no click events outside stencil node

Parameters:

  • self table Component instance
  • zone node Gui node
generated by LDoc 1.4.6 Last updated 2020-02-05 02:43:10