23 lines
455 B
Lua
23 lines
455 B
Lua
local ui = {}
|
|
local _V = function(...) return SL:GetMetaValue(...) end
|
|
local FUNCQUEUE = {}
|
|
local TAGOBJ = {}
|
|
|
|
function ui.init(parent, __data__, __update__)
|
|
if __update__ then return ui.update(__data__) end
|
|
-- Create Node
|
|
local Node = GUI:Node_Create(parent, "Node", 0.00, 0.00)
|
|
GUI:setTag(Node, 0)
|
|
|
|
ui.update(__data__)
|
|
return Node
|
|
end
|
|
|
|
function ui.update(data)
|
|
for _, func in pairs(FUNCQUEUE) do
|
|
if func then func(data) end
|
|
end
|
|
end
|
|
|
|
return ui
|