bayuMIR/client/dev/GUIExport/game/FuLiDaTing/WangZheTeQuanUI.lua
2026-06-12 02:32:15 +08:00

50 lines
1.5 KiB
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/4/2.png")
GUI:setAnchorPoint(c_bg_img, 0.50, 0.50)
GUI:setTouchEnabled(c_bg_img, false)
GUI:setTag(c_bg_img, -1)
-- Create up_btn
local up_btn = GUI:Button_Create(c_bg_img, "up_btn", 31, 121, "res/custom/01/4/0.png")
GUI:Button_loadTexturePressed(up_btn, "res/custom/01/4/1.png")
GUI:setContentSize(up_btn, 162, 42)
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", 55, 87, "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)
-- Create drop_Layout
local drop_Layout = GUI:Layout_Create(c_bg_img, "drop_Layout", 20, 16, 500, 64, false)
GUI:setAnchorPoint(drop_Layout, 0.00, 0.00)
GUI:setTouchEnabled(drop_Layout, false)
GUI:setTag(drop_Layout, 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