mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
major UIWidget rewrite with new features
This commit is contained in:
@@ -66,6 +66,9 @@ function createWidget(style, parent)
|
||||
|
||||
local widget = class.create()
|
||||
if parent then
|
||||
if type(parent) == 'string' then
|
||||
parent = rootWidget:recursiveGetChildById(parent)
|
||||
end
|
||||
parent:addChild(widget)
|
||||
end
|
||||
widget:setStyle(style)
|
||||
|
Reference in New Issue
Block a user