scenes/boost: stop sprite animations when the pause menu is active

This commit is contained in:
Kazhnuz 2019-02-15 18:38:41 +01:00
parent 7b2a5298ba
commit a7676297ca
2 changed files with 3 additions and 0 deletions

View file

@ -41,6 +41,7 @@ end
function ResumeWidget:action() function ResumeWidget:action()
self.menu.isActive = false self.menu.isActive = false
self.menu.isVisible = false self.menu.isVisible = false
self.menu.controller.assets.isActive = true
end end
function RestartWidget:new(menu, font) function RestartWidget:new(menu, font)

View file

@ -113,9 +113,11 @@ function BoostLevel:update(dt)
self.menusystem.menus["pauseMenu"].isActive = true self.menusystem.menus["pauseMenu"].isActive = true
self.menusystem.menus["pauseMenu"].isVisible = true self.menusystem.menus["pauseMenu"].isVisible = true
self.menusystem.menus["pauseMenu"]:getFocus() self.menusystem.menus["pauseMenu"]:getFocus()
self.assets.isActive = false
else else
self.menusystem.menus["pauseMenu"].isActive = false self.menusystem.menus["pauseMenu"].isActive = false
self.menusystem.menus["pauseMenu"].isVisible = false self.menusystem.menus["pauseMenu"].isVisible = false
self.assets.isActive = true
end end
end end
end end