mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Progress with widget examples
This commit is contained in:
@@ -7,6 +7,12 @@ local M = {}
|
||||
|
||||
|
||||
function M:init()
|
||||
-- Now we have next functions to use here:
|
||||
-- self:get_node([node_id]) -- Get node inside widget by id
|
||||
-- self.druid to access Druid Instance API, like:
|
||||
-- self.druid:new_button([node_id], [callback])
|
||||
-- self.druid:new_text([node_id], [text])
|
||||
-- And all functions from component.lua file
|
||||
self.root = self:get_node("root")
|
||||
self.button = self.druid:new_button("button", self.on_button, self)
|
||||
end
|
||||
|
Reference in New Issue
Block a user