def exitPlayingGame(self):
     ivalMgr.interrupt()
     if self.objectManager != None:
         self.objectManager.destroy()
         self.objectManager = None
     ToontownFriendSecret.unloadFriendSecret()
     FriendsListPanel.unloadFriendsList()
     messenger.send('cancelFriendInvitation')
     base.removeGlitchMessage()
     taskMgr.remove('avatarRequestQueueTask')
     OTPClientRepository.OTPClientRepository.exitPlayingGame(self)
     if hasattr(base, 'localAvatar'):
         camera.reparentTo(render)
         camera.setPos(0, 0, 0)
         camera.setHpr(0, 0, 0)
         del self.doId2do[base.localAvatar.getDoId()]
         if base.localAvatar.getDelayDeleteCount() != 0:
             self.notify.error('could not delete localAvatar, delayDeletes=%s' % (base.localAvatar.getDelayDeleteNames(),))
         base.localAvatar.deleteOrDelay()
         base.localAvatar.detectLeaks()
         NametagGlobals.setToon(base.cam)
         del base.localAvatar
         del __builtins__['localAvatar']
     loader.abortBulkLoad()
     base.transitions.noTransitions()
     if self._userLoggingOut:
         self.detectLeaks(okTasks=[], okEvents=['destroy-ToontownLoadingScreenTitle', 'destroy-ToontownLoadingScreenTip', 'destroy-ToontownLoadingScreenWaitBar'])
     return
 def exitPlayingGame(self):
     ivalMgr.interrupt()
     if self.objectManager != None:
         self.objectManager.destroy()
         self.objectManager = None
     ToontownFriendSecret.unloadFriendSecret()
     FriendsListPanel.unloadFriendsList()
     messenger.send('cancelFriendInvitation')
     base.removeGlitchMessage()
     taskMgr.remove('avatarRequestQueueTask')
     OTPClientRepository.OTPClientRepository.exitPlayingGame(self)
     if hasattr(base, 'localAvatar'):
         camera.reparentTo(render)
         camera.setPos(0, 0, 0)
         camera.setHpr(0, 0, 0)
         del self.doId2do[base.localAvatar.getDoId()]
         if base.localAvatar.getDelayDeleteCount() != 0:
             self.notify.error('could not delete localAvatar, delayDeletes=%s' % (base.localAvatar.getDelayDeleteNames(),))
         base.localAvatar.deleteOrDelay()
         base.localAvatar.detectLeaks()
         NametagGlobals.setMe(base.cam)
         del base.localAvatar
         del __builtins__['localAvatar']
     base.localAvatarStyle = None
     base.localAvatarName = None
     loader.abortBulkLoad()
     base.transitions.noTransitions()
     if self._userLoggingOut:
         self.detectLeaks(okTasks=[], okEvents=['destroy-ToontownLoadingScreenTitle', 'destroy-ToontownLoadingScreenTip', 'destroy-ToontownLoadingScreenWaitBar'])
     return
Exemple #3
0
 def exitFLM(self):
     self.notify.debug('FriendsListManager: exitFLM()')
     if self._preserveFriendsList:
         return
     if not self._entered:
         return
     self._entered = False
     self.ignore('openFriendsList')
     self.ignore('clickedNametag')
     self.ignore('clickedNametagPlayer')
     base.localAvatar.setFriendsListButtonActive(0)
     NametagGlobals.setWantActiveNametags(False)
     if self.avatarPanel:
         self.avatarPanel.cleanup()
         self.avatarPanel = None
     self.ignore('gotoAvatar')
     self.ignore('friendAvatar')
     self.ignore('avatarDetails')
     self.ignore('playerDetails')
     FriendsListPanel.hideFriendsList()
     ToontownFriendSecret.hideFriendSecret()
     if base.cr.friendManager:
         base.cr.friendManager.setAvailable(0)
     self.ignore('friendInvitation')
     FriendInviter.hideFriendInviter()
     ToonAvatarDetailPanel.hideAvatarDetail()
     ToonTeleportPanel.hideTeleportPanel()
     return
 def exitFLM(self):
     self.notify.debug("FriendsListManager: exitFLM()")
     if self._preserveFriendsList:
         return
     if not self._entered:
         return
     self._entered = False
     self.ignore("openFriendsList")
     self.ignore("clickedNametag")
     base.localAvatar.setFriendsListButtonActive(0)
     NametagGlobals.setMasterNametagsActive(0)
     if self.avatarPanel:
         self.avatarPanel.cleanup()
         self.avatarPanel = None
     self.ignore("gotoAvatar")
     self.ignore("friendAvatar")
     self.ignore("avatarDetails")
     FriendsListPanel.hideFriendsList()
     ToontownFriendSecret.hideFriendSecret()
     if base.cr.friendManager:
         base.cr.friendManager.setAvailable(0)
     self.ignore("friendInvitation")
     FriendInviter.hideFriendInviter()
     ToonAvatarDetailPanel.hideAvatarDetail()
     ToonTeleportPanel.hideTeleportPanel()
     return
Exemple #5
0
 def exitFLM(self):
     self.notify.debug('FriendsListManager: exitFLM()')
     if self._preserveFriendsList:
         return
     if not self._entered:
         return
     self._entered = False
     self.ignore('openFriendsList')
     self.ignore('clickedNametag')
     self.ignore('clickedNametagPlayer')
     base.localAvatar.setFriendsListButtonActive(0)
     NametagGlobals.setMasterNametagsActive(0)
     if self.avatarPanel:
         self.avatarPanel.cleanup()
         self.avatarPanel = None
     self.ignore('gotoAvatar')
     self.ignore('friendAvatar')
     self.ignore('avatarDetails')
     self.ignore('playerDetails')
     FriendsListPanel.hideFriendsList()
     ToontownFriendSecret.hideFriendSecret()
     if base.cr.friendManager:
         base.cr.friendManager.setAvailable(0)
     self.ignore('friendInvitation')
     FriendInviter.hideFriendInviter()
     ToonAvatarDetailPanel.hideAvatarDetail()
     ToonTeleportPanel.hideTeleportPanel()
     return
Exemple #6
0
    def exitFLM(self):
        self.notify.debug("FriendsListManager: exitFLM()")
        # check to see if we're staying active over a Place state transition

        if self._preserveFriendsList:
            return

        if not self._entered:
            return

        self._entered = False
        
        # Put away the friends list
        self.ignore("openFriendsList")
        self.ignore("clickedNametag")
        self.ignore("clickedNametagPlayer")
        base.localAvatar.setFriendsListButtonActive(0)

        # Since we're no longer listening for the click event, make the
        # nametags not be clickable.
        NametagGlobals.setMasterNametagsActive(0)

        # Put away the avatar panel
        if self.avatarPanel:
            self.avatarPanel.cleanup()
            self.avatarPanel = None
        self.ignore("gotoAvatar")
        self.ignore("friendAvatar")
        self.ignore("avatarDetails")
        self.ignore("playerDetails")

        # And the friends list panel
        FriendsListPanel.hideFriendsList()

        # Put away the Secrets panel
        ToontownFriendSecret.hideFriendSecret()

        # No longer interested in invitations from friends
        if base.cr.friendManager:
            base.cr.friendManager.setAvailable(0)
        self.ignore("friendInvitation")

        # Close these auxiliary panels, if they are open.
        FriendInviter.hideFriendInviter()
        ToonAvatarDetailPanel.hideAvatarDetail()
        ToonTeleportPanel.hideTeleportPanel()
 def __handleSecrets(self):
     base.localAvatar.chatMgr.noWhisper()
     ToontownFriendSecret.showFriendSecret(ToontownFriendSecret.AvatarSecret)
Exemple #8
0
 def __handleSecrets(self):
     base.localAvatar.chatMgr.noWhisper()
     ToontownFriendSecret.showFriendSecret()
 def __trueFriends(self):
     messenger.send('wakeup')
     ToontownFriendSecret.showFriendSecret()
Exemple #10
0
 def __secrets(self):
     messenger.send('wakeup')
     ToontownFriendSecret.showFriendSecret(
         ToontownFriendSecret.AvatarSecret)
 def __secrets(self):
     messenger.send('wakeup')
     ToontownFriendSecret.showFriendSecret(ToontownFriendSecret.AvatarSecret)
 def _PlayerInfoPanel__handleSecrets(self):
     base.localAvatar.chatMgr.noWhisper()
     ToontownFriendSecret.showFriendSecret(ToontownFriendSecret.BothSecrets)
 def __trueFriends(self):
     messenger.send('wakeup')
     ToontownFriendSecret.showFriendSecret()
Exemple #14
0
 def _PlayerInfoPanel__handleSecrets(self):
     base.localAvatar.chatMgr.noWhisper()
     ToontownFriendSecret.showFriendSecret(ToontownFriendSecret.BothSecrets)
Exemple #15
0
 def __handleSecrets(self):
     base.localAvatar.chatMgr.noWhisper()
     ToontownFriendSecret.showFriendSecret(
         ToontownFriendSecret.AvatarSecret
     )  #grep keywords: BothSecrets AvatarSecret AccountSecret secretType switchboard
 def __handleTrueFriends(self):
     base.localAvatar.chatMgr.noWhisper()
     ToontownFriendSecret.showFriendSecret()