mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-30 03:09:20 +02:00
13 lines
271 B
Lua
13 lines
271 B
Lua
local context = G.botContext
|
|
if type(context.UI) ~= "table" then
|
|
context.UI = {}
|
|
end
|
|
local UI = context.UI
|
|
|
|
UI.createWidget = function(name, parent)
|
|
if parent == nil then
|
|
parent = context.panel
|
|
end
|
|
return g_ui.createWidget(name, parent)
|
|
end
|