146 lines
5.4 KiB
Lua
146 lines
5.4 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", 3, 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/39/bg.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", 770, 447, "res/public/1900000510.png")
|
||
GUI:Button_loadTexturePressed(btn_close, "res/public/1900000511.png")
|
||
GUI:setContentSize(btn_close, 26, 42)
|
||
GUI:setIgnoreContentAdaptWithSize(btn_close, false)
|
||
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 jl_img
|
||
local jl_img = GUI:Image_Create(img_bg, "jl_img", 200, 382, "res/custom/39/1.png")
|
||
GUI:setAnchorPoint(jl_img, 0.00, 0.00)
|
||
GUI:setTouchEnabled(jl_img, false)
|
||
GUI:setTag(jl_img, 0)
|
||
|
||
-- Create Move_Layout
|
||
local Move_Layout = GUI:Layout_Create(img_bg, "Move_Layout", 229, 160, 500, 150, false)
|
||
GUI:setAnchorPoint(Move_Layout, 0.00, 0.00)
|
||
GUI:setTouchEnabled(Move_Layout, false)
|
||
GUI:setTag(Move_Layout, 0)
|
||
|
||
-- Create move_btn_1
|
||
local move_btn_1 = GUI:Button_Create(Move_Layout, "move_btn_1", 31, 104, "res/custom/39/btn/2.png")
|
||
GUI:Button_setTitleText(move_btn_1, [[]])
|
||
GUI:Button_setTitleColor(move_btn_1, "#ffffff")
|
||
GUI:Button_setTitleFontSize(move_btn_1, 16)
|
||
GUI:Button_titleEnableOutline(move_btn_1, "#000000", 1)
|
||
GUI:setAnchorPoint(move_btn_1, 0.00, 0.00)
|
||
GUI:setTouchEnabled(move_btn_1, true)
|
||
GUI:setTag(move_btn_1, 0)
|
||
|
||
-- Create move_btn_2
|
||
local move_btn_2 = GUI:Button_Create(Move_Layout, "move_btn_2", 281, 104, "res/custom/39/btn/4.png")
|
||
GUI:Button_setTitleText(move_btn_2, [[]])
|
||
GUI:Button_setTitleColor(move_btn_2, "#ffffff")
|
||
GUI:Button_setTitleFontSize(move_btn_2, 16)
|
||
GUI:Button_titleEnableOutline(move_btn_2, "#000000", 1)
|
||
GUI:setAnchorPoint(move_btn_2, 0.00, 0.00)
|
||
GUI:setTouchEnabled(move_btn_2, true)
|
||
GUI:setTag(move_btn_2, 0)
|
||
|
||
-- Create move_btn_3
|
||
local move_btn_3 = GUI:Button_Create(Move_Layout, "move_btn_3", 31, 54, "res/custom/39/btn/3.png")
|
||
GUI:Button_setTitleText(move_btn_3, [[]])
|
||
GUI:Button_setTitleColor(move_btn_3, "#ffffff")
|
||
GUI:Button_setTitleFontSize(move_btn_3, 16)
|
||
GUI:Button_titleEnableOutline(move_btn_3, "#000000", 1)
|
||
GUI:setAnchorPoint(move_btn_3, 0.00, 0.00)
|
||
GUI:setTouchEnabled(move_btn_3, true)
|
||
GUI:setTag(move_btn_3, 0)
|
||
|
||
-- Create move_btn_4
|
||
local move_btn_4 = GUI:Button_Create(Move_Layout, "move_btn_4", 281, 54, "res/custom/39/btn/5.png")
|
||
GUI:Button_setTitleText(move_btn_4, [[]])
|
||
GUI:Button_setTitleColor(move_btn_4, "#ffffff")
|
||
GUI:Button_setTitleFontSize(move_btn_4, 16)
|
||
GUI:Button_titleEnableOutline(move_btn_4, "#000000", 1)
|
||
GUI:setAnchorPoint(move_btn_4, 0.00, 0.00)
|
||
GUI:setTouchEnabled(move_btn_4, true)
|
||
GUI:setTag(move_btn_4, 0)
|
||
|
||
-- Create move_btn_5
|
||
local move_btn_5 = GUI:Button_Create(Move_Layout, "move_btn_5", 155, 4, "res/custom/39/btn/1.png")
|
||
GUI:Button_setTitleText(move_btn_5, [[]])
|
||
GUI:Button_setTitleColor(move_btn_5, "#ffffff")
|
||
GUI:Button_setTitleFontSize(move_btn_5, 16)
|
||
GUI:Button_titleEnableOutline(move_btn_5, "#000000", 1)
|
||
GUI:setAnchorPoint(move_btn_5, 0.00, 0.00)
|
||
GUI:setTouchEnabled(move_btn_5, true)
|
||
GUI:setTag(move_btn_5, 0)
|
||
|
||
-- Create yzd_msg
|
||
local yzd_msg = GUI:Text_Create(Move_Layout, "yzd_msg", 332, 14, 16, "#ff0000", [[(影之道:21:40分关闭)]])
|
||
GUI:Text_enableOutline(yzd_msg, "#000000", 2)
|
||
GUI:setAnchorPoint(yzd_msg, 0.00, 0.00)
|
||
GUI:setTouchEnabled(yzd_msg, false)
|
||
GUI:setTag(yzd_msg, 0)
|
||
|
||
-- Create huizhang_name
|
||
local huizhang_name = GUI:Text_Create(img_bg, "huizhang_name", 339, 58, 16, "#ff9b00", [[暂无会长]])
|
||
GUI:Text_enableOutline(huizhang_name, "#000000", 1)
|
||
GUI:setAnchorPoint(huizhang_name, 0.00, 0.00)
|
||
GUI:setTouchEnabled(huizhang_name, false)
|
||
GUI:setTag(huizhang_name, 0)
|
||
|
||
-- Create hanghui_name
|
||
local hanghui_name = GUI:Text_Create(img_bg, "hanghui_name", 599, 58, 16, "#00ff00", [[暂无行会]])
|
||
GUI:Text_enableOutline(hanghui_name, "#000000", 1)
|
||
GUI:setAnchorPoint(hanghui_name, 0.00, 0.00)
|
||
GUI:setTouchEnabled(hanghui_name, false)
|
||
GUI:setTag(hanghui_name, 0)
|
||
|
||
-- Create time_text
|
||
local time_text = GUI:Text_Create(img_bg, "time_text", 356, 105, 16, "#ff0000", [[0分钟]])
|
||
GUI:Text_enableOutline(time_text, "#000000", 1)
|
||
GUI:setAnchorPoint(time_text, 0.00, 0.00)
|
||
GUI:setTouchEnabled(time_text, false)
|
||
GUI:setTag(time_text, 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
|