Progress with widget examples

This commit is contained in:
Insality
2025-01-30 01:44:03 +02:00
parent c51a00ad80
commit 0514625f9a
9 changed files with 1195 additions and 697 deletions

View File

@@ -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