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 Scene local Scene = GUI:Layout_Create(parent, "Scene", _V("SCREEN_WIDTH") * 0.5, _V("SCREEN_HEIGHT") * 0.5, _V("SCREEN_WIDTH"), _V("SCREEN_HEIGHT"), false) GUI:setAnchorPoint(Scene, 0.50, 0.50) GUI:setTouchEnabled(Scene, true) GUI:setTag(Scene, -1) -- Create Image_1 local Image_1 = GUI:Image_Create(Scene, "Image_1", 0.00, _V("SCREEN_HEIGHT"), "res/public/bg_npc_01.png") GUI:setAnchorPoint(Image_1, 0.00, 1.00) GUI:setTouchEnabled(Image_1, false) GUI:setTag(Image_1, 0) -- Create Button_1 local Button_1 = GUI:Button_Create(Image_1, "Button_1", 545.00, 138.00, "res/public/1900000510.png") GUI:Button_loadTexturePressed(Button_1, "res/public/1900000511.png") GUI:Button_setTitleText(Button_1, [[]]) GUI:Button_setTitleColor(Button_1, "#ffffff") GUI:Button_setTitleFontSize(Button_1, 16) GUI:Button_titleEnableOutline(Button_1, "#000000", 1) GUI:setAnchorPoint(Button_1, 0.00, 0.00) GUI:setTouchEnabled(Button_1, true) GUI:setTag(Button_1, 0) -- Create Text_1 local Text_1 = GUI:Text_Create(Image_1, "Text_1", 17.00, 144.00, 16, "#00ff40", [[欢迎来到1.76复古传奇]]) GUI:Text_enableOutline(Text_1, "#000000", 1) GUI:setAnchorPoint(Text_1, 0.00, 0.00) GUI:setTouchEnabled(Text_1, false) GUI:setTag(Text_1, 0) ui.update(__data__) return Scene end function ui.update(data) for _, func in pairs(FUNCQUEUE) do if func then func(data) end end end return ui