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