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 Layer local Layer = GUI:Node_Create(parent, "Layer", 0, 0) GUI:setTag(Layer, -1) -- Create TaskShow_Layout local TaskShow_Layout = GUI:Layout_Create(Layer, "TaskShow_Layout", 0, 0, 200, 185, false) GUI:setAnchorPoint(TaskShow_Layout, 0.00, 0.00) GUI:setTouchEnabled(TaskShow_Layout, false) GUI:setTag(TaskShow_Layout, 0) ui.update(__data__) return Layer end function ui.update(data) for _, func in pairs(FUNCQUEUE) do if func then func(data) end end end return ui