UIMain:TopRoot的动画
This commit is contained in:
parent
ebd22a9e68
commit
b44f3fb1f9
@ -22,7 +22,6 @@ function MainTopView:ctor()
|
||||
end
|
||||
|
||||
function MainTopView:Init(root, canvas, animator, sortingOrder)
|
||||
--[[
|
||||
self.root = root
|
||||
self.mCanvas = canvas
|
||||
self.animator = animator
|
||||
@ -37,7 +36,6 @@ function MainTopView:Init(root, canvas, animator, sortingOrder)
|
||||
self:StartUpdate()
|
||||
|
||||
self:InitBtnState()
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:InitBtnState()
|
||||
@ -68,16 +66,13 @@ function MainTopView:StartUpdate()
|
||||
end
|
||||
|
||||
function MainTopView:EndUpdate()
|
||||
--[[
|
||||
if updateHandle ~= nil then
|
||||
UpdateBeat:RemoveListener(updateHandle)
|
||||
updateHandle = nil
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:Change(state, order)
|
||||
--[[
|
||||
if self.mCanvas == nil then return end
|
||||
|
||||
if state then
|
||||
@ -100,18 +95,15 @@ function MainTopView:Change(state, order)
|
||||
self.animator:Play(state and showAni or closeAni, 0, 0)
|
||||
self:ChangeRefreshCombineServerBtn()
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:Resume()
|
||||
--[[
|
||||
if self.mCanvas == nil then return end
|
||||
|
||||
self.mCanvas.sortingOrder = self.defaultSortingOrder
|
||||
|
||||
self.state = false
|
||||
self.animator:Play(closeAni)
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:Update()
|
||||
@ -396,12 +388,7 @@ function MainTopView:RefreshCombineServerBtn()
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function MainTopView:Dispose()
|
||||
--[[
|
||||
self:EndUpdate()
|
||||
self:DisposeRefreshCombineServerBtn()
|
||||
|
||||
@ -412,7 +399,6 @@ function MainTopView:Dispose()
|
||||
self.mCanvas = nil
|
||||
|
||||
self.trans = nil
|
||||
]]
|
||||
end
|
||||
|
||||
return MainTopView
|
||||
Loading…
x
Reference in New Issue
Block a user