bayuMIR/cilent/dev/GUIExport/game/FuLiDaTing/ZBShouBaoUI.lua
2026-06-12 01:18:06 +08:00

30 lines
781 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 c_bg_img
local c_bg_img = GUI:Image_Create(parent, "c_bg_img", 0, 0, "res/custom/01/6/1.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", 11, 8, 522, 281, 1)
GUI:setAnchorPoint(ListView, 0.00, 0.00)
GUI:setTouchEnabled(ListView, true)
GUI:setTag(ListView, 0)
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