Fix for examples

This commit is contained in:
Insality
2025-01-29 23:13:09 +02:00
parent db0c4c8ee5
commit da5c6b9a54
9 changed files with 319 additions and 32 deletions

View File

@@ -131,8 +131,12 @@ Create a new lua file to create a new widget class. This widget can be created w
local M = {}
function M:init()
self.druid = self:get_druid()
self.root = self:get_node("root")
self.button = self.druid:new_button("button", self.on_click)
end
function M:on_click()
print("Button clicked!")
end
return M