Module druid

Druid UI Library.

Component based UI library to make your life easier. Contains a lot of base components and give API to create your own rich components.

Functions

register(name, module) Register external module
new(component_script) Create UI instance for ui elements
_fct_metatable.on_message(self, message_id, message, sender) Called on_message
_fct_metatable.on_input(self, action_id, action) Called ON_INPUT
_fct_metatable.update(self, dt) Called on_update

Tables

comps Basic components


Functions

register(name, module)
Register external module

Parameters:

  • name string module name
  • module table lua table with module
new(component_script)
Create UI instance for ui elements

Parameters:

  • component_script

Returns:

    instance with all ui components
_fct_metatable.on_message(self, message_id, message, sender)
Called on_message

Parameters:

  • self
  • message_id
  • message
  • sender
_fct_metatable.on_input(self, action_id, action)
Called ON_INPUT

Parameters:

  • self
  • action_id
  • action
_fct_metatable.update(self, dt)
Called on_update

Parameters:

  • self
  • dt

Tables

comps
Basic components

Fields:

  • button
  • blocker
  • back_handler
  • text
  • timer
  • progress
  • grid
  • scroll
  • slider
  • checkbox
  • checkbox_group
  • radio_group
  • progress_rich
generated by LDoc 1.4.6 Last updated 2019-12-05 22:04:11