Module .druidbutton
Component to handle basic GUI button
Functions
button:init(self, node, callback[, params[, anim_node[, event]]]) | Component init function |
button:disable_animation(self) | Disable all button animations |
button:set_click_zone(self, zone) | Strict button click area. |
Functions
- button:init(self, node, callback[, params[, anim_node[, event]]])
-
Component init function
Parameters:
- button:disable_animation(self)
-
Disable all button animations
Parameters:
- self table Component instance
- button: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