More widgets stuff, cleaning code

This commit is contained in:
Insality
2024-11-19 23:06:57 +02:00
parent 37190684c4
commit c35dfc7066
36 changed files with 1494 additions and 508 deletions

View File

@@ -0,0 +1,15 @@
---@class widget.TEMPLATE: druid.widget
local M = {}
function M:init()
self.root = self:get_node("root")
self.button = self.druid:new_button("button"), self.on_button, self)
end
function M:on_button()
print("Root node", self.root)
end
return M