fix: delay menu unpausing
This commit is contained in:
parent
d4fd401ee4
commit
89b0eb0b44
1 changed files with 8 additions and 2 deletions
|
@ -123,14 +123,20 @@ function OverWorld:pause()
|
|||
screens.mainmenu.pause(self)
|
||||
end
|
||||
|
||||
function OverWorld:timerResponse(timer)
|
||||
if (timer == "unPause") then
|
||||
self.isPaused = false
|
||||
self.world.isActive = true
|
||||
end
|
||||
end
|
||||
|
||||
function OverWorld:unpause()
|
||||
self.tweens:newTween(0.1, 0.2, {backGroundOpacity=0}, "inQuad")
|
||||
self.tweens:newTween(0, 0.3, {borderPosition=0}, "inOutQuad")
|
||||
self.tweens:newTween(0, 0.3, {emblemPosition=368}, "inOutQuad")
|
||||
self.tweens:newTween(0, 0.3, {ringBorder=16}, "inOutQuad")
|
||||
self.tweens:newTween(0, 0.3, {timeBorder=-20}, "inOutQuad")
|
||||
self.isPaused = false
|
||||
self.world.isActive = true
|
||||
self.tweens:newTimer(0.2, "unPause")
|
||||
|
||||
if (self.currentScreen ~= nil) then
|
||||
self.currentScreen:quit()
|
||||
|
|
Loading…
Reference in a new issue