This commit is contained in:
Insality
2024-10-30 23:37:43 +02:00
parent 00b8b192a7
commit 72cf310d6c
4 changed files with 74 additions and 181 deletions

View File

@@ -163,7 +163,9 @@ end
local WIDGET_METATABLE = { __index = base_component }
-- Create the Druid component instance
---Create the Druid component instance
---@param self druid_instance
---@param widget_class druid.base_component
local function create_widget(self, widget_class)
local instance = setmetatable({}, {
__index = setmetatable(widget_class, WIDGET_METATABLE)
@@ -206,7 +208,9 @@ local function create_widget(self, widget_class)
end
-- Before processing any input check if we need to update input stack
---Before processing any input check if we need to update input stack
---@param self druid_instance
---@param components table[]
local function check_sort_input_stack(self, components)
if not components or #components == 0 then
return