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

89 lines
2.9 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 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, 1136, 640, 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", 568, 320)
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/21/0.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", 712, 303, "res/custom/Label/x1.png")
GUI:Button_setTitleText(btn_close, [[]])
GUI:Button_setTitleColor(btn_close, "#ffffff")
GUI:Button_setTitleFontSize(btn_close, 14)
GUI:Button_titleDisableOutLine(btn_close)
GUI:setAnchorPoint(btn_close, 0.00, 0.00)
GUI:setTouchEnabled(btn_close, true)
GUI:setTag(btn_close, -1)
-- Create up_btn
local up_btn = GUI:Button_Create(img_bg, "up_btn", 390, 92, "res/custom/21/2.png")
GUI:Button_loadTexturePressed(up_btn, "res/custom/21/3.png")
GUI:Button_setTitleText(up_btn, [[]])
GUI:Button_setTitleColor(up_btn, "#ffffff")
GUI:Button_setTitleFontSize(up_btn, 16)
GUI:Button_titleEnableOutline(up_btn, "#000000", 1)
GUI:setAnchorPoint(up_btn, 0.00, 0.00)
GUI:setTouchEnabled(up_btn, true)
GUI:setTag(up_btn, 0)
-- Create Image_2
local Image_2 = GUI:Image_Create(img_bg, "Image_2", 137, 192, "res/custom/663/5.png")
GUI:setContentSize(Image_2, 50, 50)
GUI:setIgnoreContentAdaptWithSize(Image_2, false)
GUI:setAnchorPoint(Image_2, 0.00, 0.00)
GUI:setTouchEnabled(Image_2, false)
GUI:setTag(Image_2, 0)
-- Create drop_Layout
local drop_Layout = GUI:Layout_Create(img_bg, "drop_Layout", 279, 195, 369, 68, false)
GUI:setAnchorPoint(drop_Layout, 0.00, 0.00)
GUI:setTouchEnabled(drop_Layout, false)
GUI:setTag(drop_Layout, 0)
-- Create open_img
local open_img = GUI:Image_Create(img_bg, "open_img", 411, 52, "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 Effect_1
local Effect_1 = GUI:Effect_Create(img_bg, "Effect_1", 106, 182, 0, 76001, 0, 0, 0, 1)
GUI:setTag(Effect_1, 0)
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