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/7/bg.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, 15, 524, 312, 1) GUI:ListView_setItemsMargin(ListView, 6) GUI:setAnchorPoint(ListView, 0.00, 0.00) GUI:setTouchEnabled(ListView, true) GUI:setTag(ListView, 0) -- Create Text_Recharge local Text_Recharge = GUI:Text_Create(c_bg_img, "Text_Recharge", 442, 353, 18, "#00ff00", [[累计充值:0元]]) GUI:Text_enableOutline(Text_Recharge, "#000000", 2) GUI:setAnchorPoint(Text_Recharge, 0.50, 0.50) GUI:setTouchEnabled(Text_Recharge, false) GUI:setTag(Text_Recharge, -1) 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