Remove register and update examples

This commit is contained in:
Insality
2024-11-21 00:28:53 +02:00
parent 4ef65579a6
commit bc0ada7098
44 changed files with 78 additions and 668 deletions

View File

@@ -1,9 +1,8 @@
local event = require("event.event")
local timer = require("druid.extended.timer")
local component = require("druid.component")
---@class basic_timer: druid.component
---@class basic_timer: druid.base_component
---@field druid druid_instance
---@field root node
---@field text druid.text
@@ -16,7 +15,7 @@ function M:init(template, nodes)
self.druid = self:get_druid(template, nodes)
self.root = self:get_node("root")
self.timer = self.druid:new(timer, "text")
self.timer = self.druid:new_timer("text")
local time = 5
self.timer:set_interval(time, 0)