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

31 lines
No EOL
1.1 KiB
Lua

local ui = {}
function ui.init(parent)
-- Create Top_Node
local Top_Node = GUI:Node_Create(parent, "Top_Node", 0.00, 0.00)
GUI:setTag(Top_Node, -1)
-- Create Top_bg
local Top_bg = GUI:Layout_Create(Top_Node, "Top_bg", 0.00, 0.00, 600.00, 72.00, false)
GUI:setTouchEnabled(Top_bg, false)
GUI:setTag(Top_bg, -1)
-- Create top_btn
local top_btn = GUI:Button_Create(Top_bg, "top_btn", 553.00, 1.00, "res/custom/top/z19c.png")
GUI:Button_setTitleText(top_btn, "")
GUI:Button_setTitleColor(top_btn, "#ffffff")
GUI:Button_setTitleFontSize(top_btn, 14)
GUI:Button_titleEnableOutline(top_btn, "#000000", 1)
GUI:setAnchorPoint(top_btn, 1.00, 0.50)
GUI:setTouchEnabled(top_btn, true)
GUI:setTag(top_btn, -1)
-- Create btn_switch
local btn_switch = GUI:Layout_Create(top_btn, "btn_switch", 0.00, 0.00, 540.00, 72.00, false)
GUI:Layout_setBackGroundColorType(btn_switch, 1)
GUI:Layout_setBackGroundColor(btn_switch, "#96c8ff")
GUI:Layout_setBackGroundColorOpacity(btn_switch, 0)
GUI:setAnchorPoint(btn_switch, 1.00, 1.00)
GUI:setTouchEnabled(btn_switch, false)
GUI:setTag(btn_switch, -1)
end
return ui