This commit is contained in:
Insality
2025-03-07 23:17:04 +02:00
parent 69cf28e408
commit 6c5210a0fa
6 changed files with 81 additions and 2 deletions

View File

@@ -1,6 +1,13 @@
---@class druid.widget: druid.component
---@field druid druid.instance Ready to use druid instance
---@class druid.logger
---@field trace fun(message: string, context: any)
---@field debug fun(message: string, context: any)
---@field info fun(message: string, context: any)
---@field warn fun(message: string, context: any)
---@field error fun(message: string, context: any)
---@class GUITextMetrics
---@field width number
---@field height number

View File

@@ -238,6 +238,7 @@ function M:new(component, ...)
if instance.init then
instance:init(...)
end
if instance.on_late_init or (not self.input_inited and instance.on_input) then
schedule_late_init(self)
end