bayuMIR/client/dev/GUIExport/game/Tongyong/HuodongzhongxinUI.lua

164 lines
6.5 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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/27/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", 770, 446, "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 Listbtn_ListView
local Listbtn_ListView = GUI:ListView_Create(img_bg, "Listbtn_ListView", 54, 36, 144, 413, 1)
GUI:setAnchorPoint(Listbtn_ListView, 0.00, 0.00)
GUI:setTouchEnabled(Listbtn_ListView, true)
GUI:setTag(Listbtn_ListView, 0)
-- Create Count_Layout
local Count_Layout = GUI:Layout_Create(img_bg, "Count_Layout", 206, 35, 546, 415, false)
GUI:setAnchorPoint(Count_Layout, 0.00, 0.00)
GUI:setTouchEnabled(Count_Layout, false)
GUI:setTag(Count_Layout, 0)
-- Create activity_bg
local activity_bg = GUI:Image_Create(Count_Layout, "activity_bg", 0, 0, "res/custom/27/bg/1.png")
GUI:setAnchorPoint(activity_bg, 0.00, 0.00)
GUI:setTouchEnabled(activity_bg, false)
GUI:setTag(activity_bg, 0)
-- Create activity_Text
local activity_Text = GUI:Text_Create(activity_bg, "activity_Text", 273, 231, 16, "#ffff00", [[共三层,清除完当前地图所有怪物可进入下一层。
最后一层刷新一只超级bossboss每掉到40%血量将会分出2个10w血分身。分身期间boss处于无敌模式。需清除分身再行击杀bossboss必爆不朽级以上剑甲。
开启时间12点-14点13.30后将不可再进入地图]])
GUI:setIgnoreContentAdaptWithSize(activity_Text, false)
GUI:Text_setTextAreaSize(activity_Text, 500, 140)
GUI:Text_setTextHorizontalAlignment(activity_Text, 1)
GUI:Text_enableOutline(activity_Text, "#000000", 2)
GUI:setAnchorPoint(activity_Text, 0.50, 0.50)
GUI:setTouchEnabled(activity_Text, false)
GUI:setTag(activity_Text, 0)
-- Create give_Layout
local give_Layout = GUI:Layout_Create(activity_bg, "give_Layout", 76, 79, 400, 60, false)
GUI:setAnchorPoint(give_Layout, 0.00, 0.00)
GUI:setTouchEnabled(give_Layout, false)
GUI:setTag(give_Layout, 0)
-- Create Up_btn
local Up_btn = GUI:Button_Create(activity_bg, "Up_btn", 206, 12, "res/custom/27/20.png")
GUI:Button_loadTexturePressed(Up_btn, "res/custom/27/21.png")
GUI:setContentSize(Up_btn, 161, 41)
GUI:setIgnoreContentAdaptWithSize(Up_btn, false)
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 Look_rank_btn
local Look_rank_btn = GUI:Button_Create(activity_bg, "Look_rank_btn", 300, 12, "res/custom/27/22.png")
GUI:Button_loadTexturePressed(Look_rank_btn, "res/custom/27/23.png")
GUI:setContentSize(Look_rank_btn, 161, 41)
GUI:setIgnoreContentAdaptWithSize(Look_rank_btn, false)
GUI:Button_setTitleText(Look_rank_btn, [[]])
GUI:Button_setTitleColor(Look_rank_btn, "#ffffff")
GUI:Button_setTitleFontSize(Look_rank_btn, 16)
GUI:Button_titleEnableOutline(Look_rank_btn, "#000000", 1)
GUI:setAnchorPoint(Look_rank_btn, 0.00, 0.00)
GUI:setTouchEnabled(Look_rank_btn, true)
GUI:setTag(Look_rank_btn, 0)
-- Create daluandou_Layou
local daluandou_Layou = GUI:Layout_Create(Count_Layout, "daluandou_Layou", 1, -5, 544, 419, false)
GUI:setAnchorPoint(daluandou_Layou, 0.00, 0.00)
GUI:setTouchEnabled(daluandou_Layou, false)
GUI:setTag(daluandou_Layou, 0)
GUI:setVisible(daluandou_Layou, false)
-- Create baomin_btn
local baomin_btn = GUI:Button_Create(daluandou_Layou, "baomin_btn", 478, 279, "res/custom/27/14.png")
GUI:Button_loadTexturePressed(baomin_btn, "res/custom/27/10.png")
GUI:setContentSize(baomin_btn, 48, 123)
GUI:setIgnoreContentAdaptWithSize(baomin_btn, false)
GUI:Button_setTitleText(baomin_btn, [[]])
GUI:Button_setTitleColor(baomin_btn, "#ffffff")
GUI:Button_setTitleFontSize(baomin_btn, 16)
GUI:Button_titleEnableOutline(baomin_btn, "#000000", 1)
GUI:setAnchorPoint(baomin_btn, 0.00, 0.00)
GUI:setTouchEnabled(baomin_btn, true)
GUI:setTag(baomin_btn, 0)
-- Create baomin_img
local baomin_img = GUI:Image_Create(daluandou_Layou, "baomin_img", 376, 38, "res/custom/27/bq/2.png")
GUI:setAnchorPoint(baomin_img, 0.00, 0.00)
GUI:setScale(baomin_img, 0.60)
GUI:setTouchEnabled(baomin_img, false)
GUI:setTag(baomin_img, 0)
-- Create LuandouRank_img
local LuandouRank_img = GUI:Image_Create(img_bg, "LuandouRank_img", 205, 32, "res/custom/27/5.png")
GUI:setAnchorPoint(LuandouRank_img, 0.00, 0.00)
GUI:setTouchEnabled(LuandouRank_img, false)
GUI:setTag(LuandouRank_img, 0)
-- Create Rank_ListView
local Rank_ListView = GUI:ListView_Create(LuandouRank_img, "Rank_ListView", 12, 15, 524, 213, 1)
GUI:setAnchorPoint(Rank_ListView, 0.00, 0.00)
GUI:setTouchEnabled(Rank_ListView, true)
GUI:setTag(Rank_ListView, 0)
-- Create Text_BaoMingNum
local Text_BaoMingNum = GUI:Text_Create(LuandouRank_img, "Text_BaoMingNum", 470, 282, 16, "#00ff00", [[0]])
GUI:Text_enableOutline(Text_BaoMingNum, "#000000", 2)
GUI:setAnchorPoint(Text_BaoMingNum, 0.50, 0.50)
GUI:setTouchEnabled(Text_BaoMingNum, false)
GUI:setTag(Text_BaoMingNum, 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