Lots of fixes and improvements
This commit is contained in:
Robert Jelic
2025-02-16 14:33:07 +01:00
parent 19edc4b295
commit cc7b2de51a
27 changed files with 198 additions and 208 deletions

View File

@@ -73,7 +73,9 @@ function basalt.create(type, properties, lazyLoading, parent)
queueLazyElements()
return blueprint
else
return elementClass.new(properties, basalt)
local element = elementClass.new()
element:init(properties, basalt)
return element
end
end
@@ -82,6 +84,7 @@ end
--- @usage local mainFrame = basalt.createFrame()
function basalt.createFrame()
local frame = basalt.create("BaseFrame")
frame:postInit()
mainFrame = frame
return frame
end