UI文件
local ui = {}
function ui.init(parent)
-- Create CloseLayout
local CloseLayout = GUI:Layout_Create(parent, "CloseLayout", 0.00, 0.00, 1136.00, 640.00, false)
GUI:Layout_setBackGroundColorType(CloseLayout, 1)
GUI:Layout_setBackGroundColor(CloseLayout, "#000000")
GUI:Layout_setBackGroundColorOpacity(CloseLayout, 76)
GUI:setTouchEnabled(CloseLayout, true)
GUI:setTag(CloseLayout, -1)
-- Create FrameLayout
local FrameLayout = GUI:Layout_Create(parent, "FrameLayout", 568.00, 320.00, 790.00, 536.00, false)
GUI:setAnchorPoint(FrameLayout, 0.50, 0.50)
GUI:setTouchEnabled(FrameLayout, true)
GUI:setTag(FrameLayout, -1)
-- Create FrameBG
local FrameBG = GUI:Image_Create(FrameLayout, "FrameBG", 0.00, 0.00, "res/public/1900000610.png")
GUI:Image_setScale9Slice(FrameBG, 272, 272, 194, 194)
GUI:setContentSize(FrameBG, 692, 582)
GUI:setIgnoreContentAdaptWithSize(FrameBG, false)
GUI:setTouchEnabled(FrameBG, false)
GUI:setTag(FrameBG, -1)
-- Create TitleText
local TitleText = GUI:Text_Create(FrameLayout, "TitleText", 145.00, 487.00, 20, "#d8c8ae", [[抽奖]])
GUI:setTouchEnabled(TitleText, false)
GUI:setTag(TitleText, -1)
GUI:Text_enableOutline(TitleText, "#000000", 1)
-- Create CloseButton
local CloseButton = GUI:Button_Create(FrameLayout, "CloseButton", 679.00, 477.00, "res/public/1900000510.png")
GUI:Button_loadTexturePressed(CloseButton, "res/public/1900000511.png")
GUI:Button_setTitleText(CloseButton, "")
GUI:Button_setTitleColor(CloseButton, "#ffffff")
GUI:Button_setTitleFontSize(CloseButton, 10)
GUI:Button_titleEnableOutline(CloseButton, "#000000", 1)
GUI:setTouchEnabled(CloseButton, true)
GUI:setTag(CloseButton, -1)
-- Create img_bg
local img_bg = GUI:Image_Create(FrameLayout, "img_bg", 356.00, 255.00, "res/custom/XingYunZhuanPan/lianzhi_bg.png")
GUI:setAnchorPoint(img_bg, 0.50, 0.50)
GUI:setTouchEnabled(img_bg, true)
GUI:setTag(img_bg, 12)
-- Create btn_lottery
local btn_lottery = GUI:Button_Create(img_bg, "btn_lottery", 289.00, 225.00, "res/custom/XingYunZhuanPan/lianzhi_btn.png")
GUI:Button_loadTexturePressed(btn_lottery, "res/custom/XingYunZhuanPan/lianzhi_btn_1.png")
GUI:Button_setScale9Slice(btn_lottery, 15, 15, 11, 11)
GUI:setContentSize(btn_lottery, 142, 142)
GUI:setIgnoreContentAdaptWithSize(btn_lottery, false)
GUI:Button_setTitleText(btn_lottery, "")
GUI:Button_setTitleColor(btn_lottery, "#414146")
GUI:Button_setTitleFontSize(btn_lottery, 14)
GUI:Button_titleDisableOutLine(btn_lottery)
GUI:setAnchorPoint(btn_lottery, 0.50, 0.50)
GUI:setTouchEnabled(btn_lottery, true)
GUI:setTag(btn_lottery, 24)
-- Create nd_Item
local nd_Item = GUI:Node_Create(img_bg, "nd_Item", 289.00, 224.00)
GUI:setAnchorPoint(nd_Item, 0.50, 0.50)
GUI:setTag(nd_Item, 49)
-- Create item_bg_1
local item_bg_1 = GUI:Node_Create(nd_Item, "item_bg_1", 58.00, 157.00)
GUI:setAnchorPoint(item_bg_1, 0.50, 0.50)
GUI:setTag(item_bg_1, 50)
-- Create item_1
local item_1 = GUI:Node_Create(item_bg_1, "item_1", 0.00, 0.00)
GUI:setAnchorPoint(item_1, 0.50, 0.50)
GUI:setTag(item_1, 69)
-- Create select_1
local select_1 = GUI:Image_Create(item_bg_1, "select_1", 2.00, 0.00, "res/custom/XingYunZhuanPan/lianzhi_7.png")
GUI:setAnchorPoint(select_1, 0.50, 0.50)
GUI:setTouchEnabled(select_1, false)
GUI:setTag(select_1, 51)
-- Create img_get_1
local img_get_1 = GUI:Image_Create(item_bg_1, "img_get_1", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_1, 0.50, 0.50)
GUI:setTouchEnabled(img_get_1, false)
GUI:setTag(img_get_1, 68)
GUI:setVisible(img_get_1, false)
-- Create item_bg_2
local item_bg_2 = GUI:Node_Create(nd_Item, "item_bg_2", 146.00, 84.00)
GUI:setAnchorPoint(item_bg_2, 0.50, 0.50)
GUI:setTag(item_bg_2, 52)
-- Create item_2
local item_2 = GUI:Node_Create(item_bg_2, "item_2", 0.00, 0.00)
GUI:setAnchorPoint(item_2, 0.50, 0.50)
GUI:setTag(item_2, 70)
-- Create select_2
local select_2 = GUI:Image_Create(item_bg_2, "select_2", 2.00, 0.00, "res/custom/XingYunZhuanPan/lianzhi_6.png")
GUI:setAnchorPoint(select_2, 0.50, 0.50)
GUI:setTouchEnabled(select_2, false)
GUI:setTag(select_2, 53)
GUI:setVisible(select_2, false)
-- Create img_get_2
local img_get_2 = GUI:Image_Create(item_bg_2, "img_get_2", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_2, 0.50, 0.50)
GUI:setTouchEnabled(img_get_2, false)
GUI:setTag(img_get_2, 71)
GUI:setVisible(img_get_2, false)
-- Create item_bg_3
local item_bg_3 = GUI:Node_Create(nd_Item, "item_bg_3", 166.00, -29.00)
GUI:setAnchorPoint(item_bg_3, 0.50, 0.50)
GUI:setTag(item_bg_3, 54)
-- Create item_3
local item_3 = GUI:Node_Create(item_bg_3, "item_3", 0.00, 0.00)
GUI:setAnchorPoint(item_3, 0.50, 0.50)
GUI:setTag(item_3, 86)
-- Create select_3
local select_3 = GUI:Image_Create(item_bg_3, "select_3", 1.00, -2.00, "res/custom/XingYunZhuanPan/lianzhi_5.png")
GUI:setAnchorPoint(select_3, 0.50, 0.50)
GUI:setTouchEnabled(select_3, false)
GUI:setTag(select_3, 55)
GUI:setVisible(select_3, false)
-- Create img_get_3
local img_get_3 = GUI:Image_Create(item_bg_3, "img_get_3", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_3, 0.50, 0.50)
GUI:setTouchEnabled(img_get_3, false)
GUI:setTag(img_get_3, 87)
GUI:setVisible(img_get_3, false)
-- Create item_bg_4
local item_bg_4 = GUI:Node_Create(nd_Item, "item_bg_4", 107.00, -129.00)
GUI:setAnchorPoint(item_bg_4, 0.50, 0.50)
GUI:setTag(item_bg_4, 56)
-- Create item_4
local item_4 = GUI:Node_Create(item_bg_4, "item_4", 0.00, 0.00)
GUI:setAnchorPoint(item_4, 0.50, 0.50)
GUI:setTag(item_4, 88)
-- Create select_4
local select_4 = GUI:Image_Create(item_bg_4, "select_4", 1.00, -2.00, "res/custom/XingYunZhuanPan/lianzhi_4.png")
GUI:setAnchorPoint(select_4, 0.50, 0.50)
GUI:setTouchEnabled(select_4, false)
GUI:setTag(select_4, 57)
GUI:setVisible(select_4, false)
-- Create img_get_4
local img_get_4 = GUI:Image_Create(item_bg_4, "img_get_4", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_4, 0.50, 0.50)
GUI:setTouchEnabled(img_get_4, false)
GUI:setTag(img_get_4, 89)
GUI:setVisible(img_get_4, false)
-- Create item_bg_5
local item_bg_5 = GUI:Node_Create(nd_Item, "item_bg_5", -1.00, -167.00)
GUI:setAnchorPoint(item_bg_5, 0.50, 0.50)
GUI:setTag(item_bg_5, 58)
-- Create item_5
local item_5 = GUI:Node_Create(item_bg_5, "item_5", 0.00, 0.00)
GUI:setAnchorPoint(item_5, 0.50, 0.50)
GUI:setTag(item_5, 90)
-- Create select_5
local select_5 = GUI:Image_Create(item_bg_5, "select_5", 0.00, -5.00, "res/custom/XingYunZhuanPan/lianzhi_3.png")
GUI:setContentSize(select_5, 102, 103)
GUI:setIgnoreContentAdaptWithSize(select_5, false)
GUI:setAnchorPoint(select_5, 0.50, 0.50)
GUI:setTouchEnabled(select_5, false)
GUI:setTag(select_5, 59)
GUI:setVisible(select_5, false)
-- Create img_get_5
local img_get_5 = GUI:Image_Create(item_bg_5, "img_get_5", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_5, 0.50, 0.50)
GUI:setTouchEnabled(img_get_5, false)
GUI:setTag(img_get_5, 91)
GUI:setVisible(img_get_5, false)
-- Create item_bg_6
local item_bg_6 = GUI:Node_Create(nd_Item, "item_bg_6", -108.00, -127.00)
GUI:setAnchorPoint(item_bg_6, 0.50, 0.50)
GUI:setTag(item_bg_6, 60)
-- Create item_6
local item_6 = GUI:Node_Create(item_bg_6, "item_6", 0.00, 0.00)
GUI:setAnchorPoint(item_6, 0.50, 0.50)
GUI:setTag(item_6, 93)
-- Create select_6
local select_6 = GUI:Image_Create(item_bg_6, "select_6", -1.00, -1.00, "res/custom/XingYunZhuanPan/lianzhi_2.png")
GUI:setAnchorPoint(select_6, 0.50, 0.50)
GUI:setTouchEnabled(select_6, false)
GUI:setTag(select_6, 61)
GUI:setVisible(select_6, false)
-- Create img_get_6
local img_get_6 = GUI:Image_Create(item_bg_6, "img_get_6", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_6, 0.50, 0.50)
GUI:setTouchEnabled(img_get_6, false)
GUI:setTag(img_get_6, 92)
GUI:setVisible(img_get_6, false)
-- Create item_bg_7
local item_bg_7 = GUI:Node_Create(nd_Item, "item_bg_7", -165.00, -29.00)
GUI:setAnchorPoint(item_bg_7, 0.50, 0.50)
GUI:setTag(item_bg_7, 62)
-- Create item_7
local item_7 = GUI:Node_Create(item_bg_7, "item_7", 0.00, 0.00)
GUI:setAnchorPoint(item_7, 0.50, 0.50)
GUI:setTag(item_7, 95)
-- Create select_7
local select_7 = GUI:Image_Create(item_bg_7, "select_7", -5.00, -1.00, "res/custom/XingYunZhuanPan/lianzhi_1.png")
GUI:setAnchorPoint(select_7, 0.50, 0.50)
GUI:setTouchEnabled(select_7, false)
GUI:setTag(select_7, 63)
GUI:setVisible(select_7, false)
-- Create img_get_7
local img_get_7 = GUI:Image_Create(item_bg_7, "img_get_7", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_7, 0.50, 0.50)
GUI:setTouchEnabled(img_get_7, false)
GUI:setTag(img_get_7, 94)
GUI:setVisible(img_get_7, false)
-- Create item_bg_8
local item_bg_8 = GUI:Node_Create(nd_Item, "item_bg_8", -144.00, 84.00)
GUI:setAnchorPoint(item_bg_8, 0.50, 0.50)
GUI:setTag(item_bg_8, 64)
-- Create item_8
local item_8 = GUI:Node_Create(item_bg_8, "item_8", 0.00, 0.00)
GUI:setAnchorPoint(item_8, 0.50, 0.50)
GUI:setTag(item_8, 97)
-- Create select_8
local select_8 = GUI:Image_Create(item_bg_8, "select_8", 0.00, 2.00, "res/custom/XingYunZhuanPan/lianzhi_9.png")
GUI:setAnchorPoint(select_8, 0.50, 0.50)
GUI:setTouchEnabled(select_8, false)
GUI:setTag(select_8, 65)
GUI:setVisible(select_8, false)
-- Create img_get_8
local img_get_8 = GUI:Image_Create(item_bg_8, "img_get_8", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_8, 0.50, 0.50)
GUI:setTouchEnabled(img_get_8, false)
GUI:setTag(img_get_8, 96)
GUI:setVisible(img_get_8, false)
-- Create item_bg_9
local item_bg_9 = GUI:Node_Create(nd_Item, "item_bg_9", -57.00, 157.00)
GUI:setAnchorPoint(item_bg_9, 0.50, 0.50)
GUI:setTag(item_bg_9, 66)
-- Create item_9
local item_9 = GUI:Node_Create(item_bg_9, "item_9", 0.00, 0.00)
GUI:setAnchorPoint(item_9, 0.50, 0.50)
GUI:setTag(item_9, 99)
-- Create select_9
local select_9 = GUI:Image_Create(item_bg_9, "select_9", -3.00, 4.00, "res/custom/XingYunZhuanPan/lianzhi_8.png")
GUI:setAnchorPoint(select_9, 0.50, 0.50)
GUI:setTouchEnabled(select_9, false)
GUI:setTag(select_9, 67)
GUI:setVisible(select_9, false)
-- Create img_get_9
local img_get_9 = GUI:Image_Create(item_bg_9, "img_get_9", 0.00, 0.00, "res/custom/common/tx_4.png")
GUI:setAnchorPoint(img_get_9, 0.50, 0.50)
GUI:setTouchEnabled(img_get_9, false)
GUI:setTag(img_get_9, 98)
GUI:setVisible(img_get_9, false)
-- Create nd_anim
local nd_anim = GUI:Node_Create(img_bg, "nd_anim", 289.00, 224.00)
GUI:setAnchorPoint(nd_anim, 0.50, 0.50)
GUI:setTag(nd_anim, 70)
end
return ui