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 bg_close local bg_close = GUI:Layout_Create(Layer, "bg_close", 0, 0, 0, 0, false) GUI:Layout_setBackGroundColorType(bg_close, 1) GUI:Layout_setBackGroundColor(bg_close, "#000000") GUI:Layout_setBackGroundColorOpacity(bg_close, 0) GUI:setAnchorPoint(bg_close, 0.00, 0.00) GUI:setTouchEnabled(bg_close, true) GUI:setTag(bg_close, -1) -- Create nd_root local nd_root = GUI:Node_Create(Layer, "nd_root", 0, 0) GUI:setTag(nd_root, 670) TAGOBJ["670"] = nd_root -- Create img_bg local img_bg = GUI:Image_Create(nd_root, "img_bg", 0, 0, "res/custom/43/bg.png") GUI:setChineseName(img_bg, "背景图片") GUI:setAnchorPoint(img_bg, 0.50, 0.50) GUI:setTouchEnabled(img_bg, true) GUI:setTag(img_bg, -1) -- Create btn_close local btn_close = GUI:Button_Create(img_bg, "btn_close", 812, 496, "res/public/1900000510.png") GUI:Button_loadTexturePressed(btn_close, "res/public/1900000511.png") GUI:Button_setTitleText(btn_close, [[]]) GUI:Button_setTitleColor(btn_close, "#ffffff") GUI:Button_setTitleFontSize(btn_close, 16) GUI:Button_titleEnableOutline(btn_close, "#000000", 1) GUI:setAnchorPoint(btn_close, 0.50, 0.50) GUI:setTouchEnabled(btn_close, true) GUI:setTag(btn_close, -1) -- Create tableView local tableView = GUI:TableView_Create(img_bg, "tableView", 54, 42, 500, 390, 1, 498, 56, 12) GUI:setAnchorPoint(tableView, 0.00, 0.00) GUI:setTouchEnabled(tableView, true) GUI:setTag(tableView, 0) -- Create boss_model_node local boss_model_node = GUI:Node_Create(img_bg, "boss_model_node", 568, 100) GUI:setContentSize(boss_model_node, 200, 280) GUI:setAnchorPoint(boss_model_node, 0.00, 0.00) GUI:setTag(boss_model_node, -1) 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