Example #1
0
    def unload(self):
        assert(self.notify.debug("unload"))
        if hasattr(self, "decorationsList") and self.decorationsList:
            for decor in self.decorationsList:
                decor.unload()

            del self.decorationsList

        self.stopPartyClock()
        self.grassRoot.removeNode()
        del self.grassRoot

        # Only exists with show-debug-party-grid 1.
        if hasattr(self, 'testGrid'):
            self.testGrid.removeNode()
            del self.testGrid

        # Ignore all events we might have accepted
        self.ignoreAll()

        Toon.unloadMinigameAnims()
        self.partyHat.removeNode()
        del self.partyHat
        if hasattr(base, "partyHasJukebox"):
            del base.partyHasJukebox
    def unload(self):
        if hasattr(self, 'decorationsList') and self.decorationsList:
            for decor in self.decorationsList:
                decor.unload()

            del self.decorationsList
        self.stopPartyClock()
        self.grassRoot.removeNode()
        del self.grassRoot
        if hasattr(self, 'testGrid'):
            self.testGrid.removeNode()
            del self.testGrid
        self.ignoreAll()
        Toon.unloadMinigameAnims()
        self.removePartyHats()
        if hasattr(base, 'partyHasJukebox'):
            del base.partyHasJukebox
Example #3
0
    def unload(self):
        if hasattr(self, 'decorationsList') and self.decorationsList:
            for decor in self.decorationsList:
                decor.unload()

            del self.decorationsList
        self.stopPartyClock()
        self.grassRoot.removeNode()
        del self.grassRoot
        if hasattr(self, 'testGrid'):
            self.testGrid.removeNode()
            del self.testGrid
        self.ignoreAll()
        Toon.unloadMinigameAnims()
        self.removePartyHats()
        if hasattr(base, 'partyHasJukebox'):
            del base.partyHasJukebox
Example #4
0
 def unload(self):
     self.notify.debug("BASE: unload")
     if hasattr(base, 'curMinigame'):
         del base.curMinigame
     Toon.unloadMinigameAnims()
 def unload(self):
     self.notify.debug("BASE: unload")
     if hasattr(base, "curMinigame"):
         del base.curMinigame
     Toon.unloadMinigameAnims()
 def unload(self):
     self.notify.debug('BASE: unload')
     if hasattr(base, 'curMinigame'):
         del base.curMinigame
     Toon.unloadMinigameAnims()
 def unload(self):
     self.notify.debug('BASE: unload')
     if hasattr(base, 'curMinigame'):
         del base.curMinigame
     Toon.unloadMinigameAnims()
     base.musicManager.stopAllSounds()