def exitPlayingGame(self): self.shardFSM.request('Off') ivalMgr.interrupt() base.ambientMgr.delete() base.musicMgr.delete() messenger.send('clientLogout') for (doId, obj) in self.doId2do.items(): if not isinstance(obj, LocalPirate) and not isinstance( obj, DistributedDistrict.DistributedDistrict): if hasattr(self, 'disableObject'): self.disableObject(doId) hasattr(self, 'disableObject') camera.reparentTo(render) camera.setPos(0, 0, 0) camera.setHpr(0, 0, 0) base.transitions.noTransitions() OTPClientRepository.exitPlayingGame(self) self.detectLeaks(okTasks=[ 'physics-avatar', 'memory-monitor-task', 'multitexFlatten' ], okEvents=[ 'destroy-ToontownLoadingScreenTitle', 'destroy-ToontownLoadingScreenTip', 'destroy-ToontownLoadingScreenWaitBar', PiratesGlobals.LogoutHotkey, PiratesGlobals.HideGuiHotkey, PiratesGlobals.OptionsHotkey, 'close_main_window', 'open_main_window', 'texture_state_changed', 'connectionIssue', 'connectionRetrying', self.getConnectedEvent() ])
def exitPlayingGame(self): self.shardFSM.request('Off') ivalMgr.interrupt() base.ambientMgr.delete() base.musicMgr.delete() messenger.send('clientLogout') for (doId, obj) in self.doId2do.items(): if not isinstance(obj, LocalPirate) and not isinstance(obj, DistributedDistrict.DistributedDistrict): if hasattr(self, 'disableObject'): self.disableObject(doId) hasattr(self, 'disableObject') camera.reparentTo(render) camera.setPos(0, 0, 0) camera.setHpr(0, 0, 0) base.transitions.noTransitions() OTPClientRepository.exitPlayingGame(self) self.detectLeaks(okTasks = [ 'physics-avatar', 'memory-monitor-task', 'multitexFlatten'], okEvents = [ 'destroy-ToontownLoadingScreenTitle', 'destroy-ToontownLoadingScreenTip', 'destroy-ToontownLoadingScreenWaitBar', PiratesGlobals.LogoutHotkey, PiratesGlobals.HideGuiHotkey, PiratesGlobals.OptionsHotkey, 'close_main_window', 'open_main_window', 'texture_state_changed', 'connectionIssue', 'connectionRetrying', self.getConnectedEvent()])
def exitPlayingGame(self): self.shardFSM.request('Off') ivalMgr.interrupt() base.ambientMgr.delete() base.musicMgr.delete() messenger.send('clientLogout') for doId, obj in self.doId2do.items(): if not isinstance(obj, LocalPirate) and not isinstance( obj, DistributedDistrict.DistributedDistrict): if hasattr(self, 'disableObject'): self.disableObject(doId) camera.reparentTo(render) camera.setPos(0, 0, 0) camera.setHpr(0, 0, 0) base.transitions.noTransitions() OTPClientRepository.exitPlayingGame(self)
def exitPlayingGame(self): self.notify.info('exitPlayingGame') ivalMgr.interrupt() self.notify.info('sending clientLogout') messenger.send('clientLogout') if config.GetDouble('want-dev-hotkeys', 0): try: self.ignore(PiratesGlobals.KrakenHotkey) self.ignore(PiratesGlobals.ShipHotkey) except: pass self.ignore(PiratesGlobals.LogoutHotkey) self.uidMgr.reset() if self.distributedDistrict: self.distributedDistrict.worldCreator.cleanupAllAreas() for (doId, obj) in self.doId2do.items(): if not isinstance(obj, LocalPirate) and not isinstance(obj, DistributedDistrict.DistributedDistrict): if hasattr(self, 'disableObject'): self.disableObject(doId) hasattr(self, 'disableObject') if hasattr(base, 'localAvatar'): camera.reparentTo(render) camera.setPos(0, 0, 0) camera.setHpr(0, 0, 0) base.transitions.noTransitions() if self._userLoggingOut: self.detectLeaks(okTasks = [ 'physics-avatar', 'memory-monitor-task', 'multitexFlatten'], okEvents = [ 'destroy-ToontownLoadingScreenTitle', 'destroy-ToontownLoadingScreenTip', 'destroy-ToontownLoadingScreenWaitBar', 'f12', 'f7', 'close_main_window', 'open_main_window', PiratesGlobals.LogoutHotkey]) OTPClientRepository.exitPlayingGame(self)
def exitPlayingGame(self): self.notify.info('exitPlayingGame') ivalMgr.interrupt() self.notify.info('sending clientLogout') messenger.send('clientLogout') if config.GetDouble('want-dev-hotkeys', 0): self.ignore(PiratesGlobals.KrakenHotkey) self.ignore(PiratesGlobals.ShipHotkey) self.ignore(PiratesGlobals.LogoutHotkey) self.uidMgr.reset() if self.distributedDistrict: self.distributedDistrict.worldCreator.cleanupAllAreas() for (doId, obj) in self.doId2do.items(): if not isinstance(obj, LocalPirate) and not isinstance( obj, DistributedDistrict.DistributedDistrict): if hasattr(self, 'disableObject'): self.disableObject(doId) hasattr(self, 'disableObject') if hasattr(base, 'localAvatar'): camera.reparentTo(render) camera.setPos(0, 0, 0) camera.setHpr(0, 0, 0) base.transitions.noTransitions() if self._userLoggingOut: self.detectLeaks(okTasks=[ 'physics-avatar', 'memory-monitor-task', 'multitexFlatten' ], okEvents=[ 'destroy-ToontownLoadingScreenTitle', 'destroy-ToontownLoadingScreenTip', 'destroy-ToontownLoadingScreenWaitBar', 'f12', 'f7', 'close_main_window', 'open_main_window', PiratesGlobals.LogoutHotkey ]) OTPClientRepository.exitPlayingGame(self)