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 c_bg_img local c_bg_img = GUI:Image_Create(parent, "c_bg_img", 0, 0, "res/custom/01/3/0.png") GUI:setAnchorPoint(c_bg_img, 0.50, 0.50) GUI:setTouchEnabled(c_bg_img, false) GUI:setTag(c_bg_img, -1) -- Create ListView local ListView = GUI:ListView_Create(c_bg_img, "ListView", 12, 17, 524, 264, 1) GUI:ListView_setItemsMargin(ListView, 6) GUI:setAnchorPoint(ListView, 0.00, 0.00) GUI:setTouchEnabled(ListView, true) GUI:setTag(ListView, 0) -- Create drop_Layout local drop_Layout = GUI:Layout_Create(c_bg_img, "drop_Layout", 17, 301, 405, 55, false) GUI:setAnchorPoint(drop_Layout, 0.00, 0.00) GUI:setTouchEnabled(drop_Layout, false) GUI:setTag(drop_Layout, 0) -- Create up_btn local up_btn = GUI:Button_Create(c_bg_img, "up_btn", 369, 366, "res/custom/01/3/1.png") GUI:setContentSize(up_btn, 161, 41) GUI:setIgnoreContentAdaptWithSize(up_btn, false) GUI:Button_setTitleText(up_btn, [[]]) GUI:Button_setTitleColor(up_btn, "#ffffff") GUI:Button_setTitleFontSize(up_btn, 16) GUI:Button_titleDisableOutLine(up_btn) GUI:setAnchorPoint(up_btn, 0.00, 0.00) GUI:setTouchEnabled(up_btn, true) GUI:setTag(up_btn, 0) -- Create open_img local open_img = GUI:Image_Create(c_bg_img, "open_img", 408, 285, "res/custom/Label/1.png") GUI:setAnchorPoint(open_img, 0.00, 0.00) GUI:setTouchEnabled(open_img, false) GUI:setTag(open_img, 0) GUI:setVisible(open_img, false) ui.update(__data__) return c_bg_img end function ui.update(data) for _, func in pairs(FUNCQUEUE) do if func then func(data) end end end return ui