源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

57 regels
1.2 KiB

--加载loading
LoadingView = LoadingView or BaseClass(BaseView)
function LoadingView:__init()
self.base_file = "sceneLoad"
self.layout_file = "LoadingView"
self.layer_name = "Top"
-- self.close_mode = CloseMode.CloseVisible
self.close_mode = CloseMode.CloseDestroy
self.destroy_imm = true
self.use_background = false
self.mask_open_sound = true
self.mask_close_sound = true
self.is_set_order_sorting = false
self.load_callback = function ()
self:LoadSuccess()
self:InitEvent()
end
self.open_callback = function ()
end
self.close_callback = function ()
end
self.destroy_callback = function ()
self:Remove()
end
end
function LoadingView:Remove()
if self.loading then
self.loading:DeleteMe()
self.loading = nil
end
end
function LoadingView:LoadSuccess()
self.sub = self:GetChild("sub")
self.image = self:GetChild("image").gameObject
self.loading = Loading.New(self.sub)
SetSizeDelta(self.image.transform,ScreenWidth,ScreenHeight)
UIDepth.SetUIDepth(self.gameObject,true,1200)
end
function LoadingView:InitEvent()
local function imageFun(target)
end
AddClickEvent(self.image,imageFun)
end
function LoadingView:OpenFun()
end