def _dispose(self): g_eventBus.removeListener(events.GameEvent.SHOW_CURSOR, self.__handleShowCursor, EVENT_BUS_SCOPE.GLOBAL) g_eventBus.removeListener(events.GameEvent.HIDE_CURSOR, self.__handleHideCursor, EVENT_BUS_SCOPE.GLOBAL) g_eventBus.removeListener(events.GameEvent.RADIAL_MENU_CMD, self.__toggleRadialMenu, scope=EVENT_BUS_SCOPE.BATTLE) g_eventBus.removeListener(events.GameEvent.FULL_STATS, self.__toggleFullStats, scope=EVENT_BUS_SCOPE.BATTLE) g_eventBus.removeListener(events.GameEvent.FULL_STATS_QUEST_PROGRESS, self.__toggleFullStatsQuestProgress, scope=EVENT_BUS_SCOPE.BATTLE) g_guiResetters.discard(self.__onResizeStage) ctrl = self.sessionProvider.dynamic.maps if ctrl and hasattr(ctrl, 'onVisibilityChanged'): ctrl.onVisibilityChanged -= self.__onMapVisibilityChanged ctrl = self.sessionProvider.dynamic.respawn if ctrl is not None: ctrl.onRespawnVisibilityChanged -= self.__onRespawnVisibilityChanged
def dispossessUI(self): if self.__settingsUI: self.__settingsUI.script = None self.__settingsUI = None self.__altVoiceSetting = None self.uiHolder.removeExternalCallbacks( SettingsInterface.POPULATE_UI, SettingsInterface.APPLY_SETTINGS, SettingsInterface.COMMIT_SETTINGS, SettingsInterface.SETTINGS_TAB_SELECTED, SettingsInterface.DELAY_SETTINGS, SettingsInterface.AUTODETECT_QUALITY, SettingsInterface.SET_DIALOG_VISIBILITY, "SettingsDialog.useRedifineKeysMode", "SettingsDialog.processVivoxTest", "SettingsDialog.voiceChatEnable", "SettingsDialog.updateCaptureDevices", "SettingsDialog.setVivoxMicVolume", "SettingsDialog.killDialog", ) VibroManager.g_instance.onConnect -= self.__vm_onConnect VibroManager.g_instance.onDisconnect -= self.__vm_onDisconnect g_guiResetters.discard(self.onRecreateDevice) BigWorld.wg_setAdapterOrdinalNotifyCallback(None) UIInterface.dispossessUI(self) return
def beforeDelete(self): LOG_DEBUG('[App] beforeDelete') from gui.Scaleform.Waiting import Waiting Waiting.setWainingViewGetter(None) g_guiResetters.discard(self.onUpdateStage) g_repeatKeyHandlers.discard(self.component.handleKeyEvent) if self._containerMgr is not None: self._containerMgr.destroy() self._containerMgr = None if self._loaderMgr is not None: self._loaderMgr.destroy() self._loaderMgr = None if self._cacheMgr is not None: self._cacheMgr.destroy() self._cacheMgr = None if self._contextMgr is not None: self._contextMgr.destroy() self._contextMgr = None if self._popoverManager is not None: self._popoverManager.destroy() self._popoverManager = None if self._soundMgr is not None: self._soundMgr.destroy() self._soundMgr = None if self._varsMgr is not None: self._varsMgr.destroy() self._varsMgr = None if self.__toolTip is not None: self.__toolTip.destroy() self.__toolTip = None if self._colorSchemeMgr is not None: self._colorSchemeMgr.destroy() self._colorSchemeMgr = None if self._eventLogMgr is not None: self._eventLogMgr.destroy() self._eventLogMgr = None if self._guiItemsMgr is not None: self._guiItemsMgr.destroy() self._guiItemsMgr = None if self._tweenMgr is not None: self._tweenMgr.destroy() self._tweenMgr = None if self._voiceChatMgr is not None: self._voiceChatMgr.destroy() self._voiceChatMgr = None if self._gameInputMgr is not None: self._gameInputMgr.destroy() self._gameInputMgr = None if self._utilsMgr is not None: self._utilsMgr.destroy() self._utilsMgr = None if self._tutorialMgr is not None: self._tutorialMgr.destroy() self._tutorialMgr = None if self._businessHandler is not None: self._businessHandler.destroy() self._businessHandler = None self._dispose() super(App, self).beforeDelete() self.fireEvent(AppLifeCycleEvent(self.__ns, AppLifeCycleEvent.DESTROYED))
def _dispose(self): g_guiResetters.discard(self.__onUpdateStage) if IS_DEVELOPMENT: from gui import InputHandler InputHandler.g_instance.onKeyUp -= self.__handleReloadData super(TechTree, self)._dispose() self._disposeAfter()
def _dispose(self): g_guiResetters.discard(self.__onUpdateStage) if IS_DEVELOPMENT: from gui import InputHandler InputHandler.g_instance.onKeyUp -= self.__handleReloadData super(TechTree, self)._dispose()
def beforeDelete(self): LOG_DEBUG('[App] beforeDelete') g_guiResetters.discard(self.onUpdateStage) g_repeatKeyHandlers.discard(self.component.handleKeyEvent) if self._containerMgr is not None: self._containerMgr.destroy() self._containerMgr = None if self._loaderMgr is not None: self._loaderMgr.destroy() self._loaderMgr = None if self._cacheMgr is not None: self._cacheMgr.destroy() self._cacheMgr = None if self._contextMgr is not None: self._contextMgr.destroy() self._contextMgr = None if self._popoverManager is not None: self._popoverManager.destroy() self._popoverManager = None if self._soundMgr is not None: self._soundMgr.destroy() self._soundMgr = None if self._varsMgr is not None: self._varsMgr.destroy() self._varsMgr = None if self.__toolTip is not None: self.__toolTip.destroy() self.__toolTip = None if self._colorSchemeMgr is not None: self._colorSchemeMgr.destroy() self._colorSchemeMgr = None if self._eventLogMgr is not None: self._eventLogMgr.destroy() self._eventLogMgr = None if self._statsStorage is not None: self._statsStorage.destroy() self._statsStorage = None if self._guiItemsMgr is not None: self._guiItemsMgr.destroy() self._guiItemsMgr = None if self._tweenMgr is not None: self._tweenMgr.destroy() self._tweenMgr = None if self._voiceChatMgr is not None: self._voiceChatMgr.destroy() self._voiceChatMgr = None if self._gameInputMgr is not None: self._gameInputMgr.destroy() self._gameInputMgr = None if self._utilsMgr is not None: self._utilsMgr.destroy() self._utilsMgr = None if self._businessHandler is not None: self._businessHandler.destroy() self._businessHandler = None self._dispose() super(App, self).beforeDelete() AppRef.clearReference() return
def _dispose(self): if not g_sessionProvider.getCtx().isInBattle: SoundGroups.g_instance.enableVoiceSounds(False) g_guiResetters.discard(self.onRecreateDevice) BigWorld.wg_setAdapterOrdinalNotifyCallback(None) VibroManager.g_instance.onConnect -= self.onVibroManagerConnect VibroManager.g_instance.onDisconnect -= self.onVibroManagerDisconnect super(SettingsWindow, self)._dispose()
def _dispose(self): g_guiResetters.discard(self.onRecreateDevice) BigWorld.wg_setAdapterOrdinalNotifyCallback(None) self.stopVoicesPreview() VibroManager.g_instance.onConnect -= self.onVibroManagerConnect VibroManager.g_instance.onDisconnect -= self.onVibroManagerDisconnect super(SettingsWindow, self)._dispose() return
def new_beforeDelete(self): orig_beforeDelete(self) if spotted._enable: if spotted.spotted_flash is None: return spotted.spotted_flash.data._destroy() g_guiResetters.discard(spotted.spotted_flash.data._updatePos) spotted.spotted_flash.data = None spotted.spotted_flash = None inject_stopBattle()
def hook_before_delete(self): hooked_beforeDelete(self) if config.enable: armor.cleanup_battle_data() if armor.flash is None: return armor.flash.data.destroy() g_guiResetters.discard(armor.flash.data.update_pos) armor.flash.data = None armor.flash = None
def _dispose(self): if self.__redefinedKeyModeEnabled: BigWorld.wg_setRedefineKeysMode(False) g_guiResetters.discard(self.onRecreateDevice) BigWorld.wg_setAdapterOrdinalNotifyCallback(None) self.stopVoicesPreview() VibroManager.g_instance.onConnect -= self.onVibroManagerConnect VibroManager.g_instance.onDisconnect -= self.onVibroManagerDisconnect super(SettingsWindow, self)._dispose() return
def _PlayerAvatar_onBecomeNonPlayer(base, self): try: BigWorld.player().arena.onVehicleKilled -= onVehicleKilled sessionProvider = dependency.instance(IBattleSessionProvider) ctrl = sessionProvider.shared.feedback if ctrl: ctrl.onVehicleFeedbackReceived -= onVehicleFeedbackReceived g_guiResetters.discard(update_conf_hp) cleanup() except Exception, ex: err(traceback.format_exc())
def __removeListeners(self): self.removeListener(GameEvent.SHOW_EXTENDED_INFO, self.__handleShowExtendedInfo, scope=settings.SCOPE) self.removeListener(GameEvent.GUI_VISIBILITY, self.__handleGUIVisibility, scope=settings.SCOPE) self.removeListener(GameEvent.MARKERS_2D_VISIBILITY, self.__handleMarkerVisibility, scope=settings.SCOPE) if self.__plugins is not None: self.__plugins.stop() self.__plugins.fini() g_settingsCore.interfaceScale.onScaleChanged -= self.__setMarkersScale g_settingsCore.onSettingsChanged -= self.__onSettingsChanged g_guiResetters.discard(self.__onRecreateDevice) return
def _dispose(self): if self.__redefinedKeyModeEnabled: BigWorld.wg_setRedefineKeysMode(False) g_guiResetters.discard(self.onRecreateDevice) BigWorld.wg_setAdapterOrdinalNotifyCallback(None) self.stopVoicesPreview() self.stopAltBulbPreview() self.anonymizerController.onStateChanged -= self.__refreshSettings VibroManager.g_instance.onConnect -= self.onVibroManagerConnect VibroManager.g_instance.onDisconnect -= self.onVibroManagerDisconnect self.settingsCore.onSettingsChanged -= self.__onColorSettingsChange super(SettingsWindow, self)._dispose() return
def beforeDelete(self): LOG_DEBUG('[App] beforeDelete') if self._containerMgr is not None: self._containerMgr.destroy() self._containerMgr = None if self._loaderMgr is not None: self._loaderMgr.destroy() self._loaderMgr = None if self._contextMgr is not None: self._contextMgr.destroy() self._contextMgr = None if self._soundMgr is not None: self._soundMgr.destroy() self._soundMgr = None if self._varsMgr is not None: self._varsMgr.destroy() self._varsMgr = None if self._toolTipMgr is not None: self._toolTipMgr.destroy() self._toolTipMgr = None if self.__toolTip is not None: self.__toolTip.destroy() self.__toolTip = None if self._colorSchemeMgr is not None: self._colorSchemeMgr.destroy() self._colorSchemeMgr = None if self._statsStorage is not None: self._statsStorage.destroy() self._statsStorage = None if self._guiItemsMgr is not None: self._guiItemsMgr.destroy() self._guiItemsMgr = None if self._voiceChatMgr is not None: self._voiceChatMgr.destroy() self._voiceChatMgr = None if self._gameInputMgr is not None: self._gameInputMgr.destroy() self._gameInputMgr = None if self._utilsMgr is not None: self._utilsMgr.destroy() self._utilsMgr = None if self._businessHandler is not None: self._businessHandler.destroy() self._businessHandler = None g_guiResetters.discard(self.onUpdateStage) g_repeatKeyHandlers.discard(self.component.handleKeyEvent) self._dispose() super(App, self).beforeDelete() AppRef.clearReference() return
def _dispose(self): g_eventBus.removeListener(events.GameEvent.SHOW_CURSOR, self.__handleShowCursor, EVENT_BUS_SCOPE.GLOBAL) g_eventBus.removeListener(events.GameEvent.HIDE_CURSOR, self.__handleHideCursor, EVENT_BUS_SCOPE.GLOBAL) g_eventBus.removeListener(events.GameEvent.RADIAL_MENU_CMD, self.__toggleRadialMenu, scope=EVENT_BUS_SCOPE.BATTLE) g_eventBus.removeListener(events.GameEvent.FULL_STATS, self.__toggleFullStats, scope=EVENT_BUS_SCOPE.BATTLE) g_eventBus.removeListener(events.GameEvent.FULL_STATS_QUEST_PROGRESS, self.__toggleFullStatsQuestProgress, scope=EVENT_BUS_SCOPE.BATTLE) g_guiResetters.discard(self.__onResizeStage)
def dispossessUI(self): if self.__settingsUI: self.__settingsUI.script = None self.__settingsUI = None self.__altVoiceSetting = None self.uiHolder.removeExternalCallbacks( SettingsInterface.POPULATE_UI, SettingsInterface.APPLY_SETTINGS, SettingsInterface.COMMIT_SETTINGS, SettingsInterface.DELAY_SETTINGS, SettingsInterface.AUTODETECT_QUALITY, 'SettingsDialog.useRedifineKeysMode', 'SettingsDialog.processVivoxTest', 'SettingsDialog.voiceChatEnable', 'SettingsDialog.updateCaptureDevices', 'SettingsDialog.setVivoxMicVolume', 'SettingsDialog.killDialog') VibroManager.g_instance.onConnect -= self.__vm_onConnect VibroManager.g_instance.onDisconnect -= self.__vm_onDisconnect g_guiResetters.discard(self.onRecreateDevice) BigWorld.wg_setAdapterOrdinalNotifyCallback(None) UIInterface.dispossessUI(self) return
def _removeGameCallbacks(self): g_guiResetters.discard(self.__onScreenResolutionChanged) g_repeatKeyHandlers.discard(self.component.handleKeyEvent)
def beforeDelete(self): LOG_DEBUG('[Battle] beforeDelete') removeListener = g_eventBus.removeListener removeListener(events.GameEvent.HELP, self.toggleHelpWindow, scope=_SCOPE) removeListener(events.GameEvent.GUI_VISIBILITY, self.showAll, scope=_SCOPE) ctrl = g_sessionProvider.getVehicleStateCtrl() ctrl.onVehicleStateUpdated -= self.__onVehicleStateUpdated ctrl.onPostMortemSwitched -= self.__onPostMortemSwitched player = BigWorld.player() if player and player.inputHandler: player.inputHandler.onPostmortemVehicleChanged -= self.onPostmortemVehicleChanged player.inputHandler.onCameraChanged -= self.onCameraChanged if self.colorManager: self.colorManager.dispossessUI() voice = VoiceChatInterface.g_instance if voice: voice.dispossessUI(self.proxy) voice.onPlayerSpeaking -= self.setPlayerSpeaking voice.onVoiceChatInitFailed -= self.onVoiceChatInitFailed if self.__plugins is not None: self.__plugins.stop() self.__plugins.fini() self.__plugins = None if self.movingText is not None: self.movingText.dispossessUI() self.movingText = None if self.__timerSound is not None: self.__timerSound.stop() self.__timerSound = None if self.__soundManager is not None: self.__soundManager.dispossessUI() self.__soundManager = None if self.colorManager is not None: self.colorManager.dispossessUI() self.colorManager = None if self.component: g_repeatKeyHandlers.discard(self.component.handleKeyEvent) g_settingsCore.onSettingsChanged -= self.__accs_onSettingsChanged g_settingsCore.interfaceScale.onScaleChanged -= self.__onRecreateDevice self.__timersBar.destroy() self.__teamBasesPanel.destroy() self.__debugPanel.destroy() self.__consumablesPanel.destroy() self.__damagePanel.destroy() self.__markersManager.destroy() self.__ingameHelp.destroy() self.__vErrorsPanel.destroy() self.__vMsgsPanel.destroy() self.__pMsgsPanel.destroy() self.__radialMenu.destroy() self.__minimap.destroy() self.__ribbonsPanel.destroy() self.__fragCorrelation.destroy() self.__statsForm.destroy() g_sessionProvider.clearBattleUI() if self.__arenaCtrl is not None: g_sessionProvider.removeArenaCtrl(self.__arenaCtrl) self.__arenaCtrl.clear() self.__arenaCtrl = None self.__ppSwitcher.destroy() self.__leftPlayersPanel.dispossessUI() self.__rightPlayersPanel.dispossessUI() MessengerEntry.g_instance.gui.invoke('dispossessUI') self.__arena = None g_guiResetters.discard(self.__onRecreateDevice) self.__settingsInterface.dispossessUI() self.__settingsInterface = None VoiceChatInterface.g_instance.onVoiceChatInitFailed -= self.onVoiceChatInitFailed if self.__dynSquadListener: self.__dynSquadListener.destroy() self.__dynSquadListener = None BattleWindow.beforeDelete(self) event = events.AppLifeCycleEvent g_eventBus.handleEvent(event(self.__ns, event.DESTROYED)) return
def onDelete(self): g_guiResetters.discard(self.onUpdateStage) if self._displayRoot is not None: self._displayRoot.cleanup() self._displayRoot = None return
def fini(self): self.connectionMgr.onDisconnected -= self.scaleChanged self.connectionMgr.onConnected -= self.scaleChanged self.proxy.onSettingsChanged -= self.onSettingsChanged g_guiResetters.discard(self.scaleChanged)
def beforeDelete(self): LOG_DEBUG('[Battle] beforeDelete') removeListener = g_eventBus.removeListener removeListener(events.GameEvent.HELP, self.toggleHelpWindow, scope=_SCOPE) removeListener(events.GameEvent.TOGGLE_GUI, self.showAll, scope=_SCOPE) ctrl = g_sessionProvider.shared.vehicleState if ctrl is not None: ctrl.onVehicleStateUpdated -= self.__onVehicleStateUpdated ctrl.onPostMortemSwitched -= self.__onPostMortemSwitched player = BigWorld.player() if player and player.inputHandler: player.inputHandler.onPostmortemVehicleChanged -= self.onPostmortemVehicleChanged player.inputHandler.onCameraChanged -= self.onCameraChanged if self.colorManager: self.colorManager.dispossessUI() voice = g_messengerEvents.voip if voice: voice.onPlayerSpeaking -= self.setPlayerSpeaking voice.onVoiceChatInitFailed -= self.onVoiceChatInitFailed if self.__plugins is not None: self.__plugins.stop() self.__plugins.fini() self.__plugins = None if self.movingText is not None: self.movingText.dispossessUI() self.movingText = None if self.__timerSound is not None: self.__timerSound.stop() self.__timerSound = None if self.__soundManager is not None: self.__soundManager.dispossessUI() self.__soundManager = None if self.colorManager is not None: self.colorManager.dispossessUI() self.colorManager = None if self.component: g_repeatKeyHandlers.discard(self.component.handleKeyEvent) g_settingsCore.onSettingsChanged -= self.__accs_onSettingsChanged g_settingsCore.interfaceScale.onScaleChanged -= self.__onRecreateDevice self.__timersBar.destroy() self.__battleEndWarningPanel.destroy() self.__teamBasesPanel.destroy() self.__consumablesPanel.destroy() self.__damagePanel.destroy() self.__markersManager.destroy() self.__ingameHelp.destroy() self.__vErrorsPanel.destroy() self.__vMsgsPanel.destroy() self.__pMsgsPanel.destroy() self.__radialMenu.destroy() self.__minimap.destroy() self.__ribbonsPanel.destroy() self.__fragCorrelation.destroy() self.__statsForm.destroy() self.__damageInfoPanel.destroy() remove = g_sessionProvider.removeViewComponent remove('legacy/hitDirection') remove('legacy/teamBasesPanel') remove('legacy/debugPanel') remove('legacy/battleTimer') remove('legacy/prebattleTimer') remove('legacy/ppSwitcher') if self.__arenaCtrl is not None: g_sessionProvider.removeArenaCtrl(self.__arenaCtrl) self.__arenaCtrl = None self.__ppSwitcher.destroy() self.__debugPanel.dispossessUI() self.__leftPlayersPanel.dispossessUI() self.__rightPlayersPanel.dispossessUI() MessengerEntry.g_instance.gui.invoke('dispossessUI') self.__arena = None self.__denunciator = None g_guiResetters.discard(self.__onRecreateDevice) self.__settingsInterface.dispossessUI() self.__settingsInterface = None if self.__dynSquadListener: self.__dynSquadListener.destroy() self.__dynSquadListener = None if self.__crosshairPanel is not None: self.__crosshairPanel.close() self.__crosshairPanel = None BattleWindow.beforeDelete(self) event = events.AppLifeCycleEvent g_eventBus.handleEvent(event(self.__ns, event.DESTROYED)) return
def _dispose(self): g_guiResetters.discard(self.__onUpdateStage) super(BattleResultTransition, self)._dispose()
def _dispose(self): g_guiResetters.discard(self.__onUpdateStage) super(StartBootcampTransition, self)._dispose()
def beforeDelete(self): LOG_DEBUG('[Battle] beforeDelete') removeListener = g_eventBus.removeListener removeListener(events.GameEvent.HELP, self.toggleHelpWindow, scope=_SCOPE) removeListener(events.GameEvent.GUI_VISIBILITY, self.showAll, scope=_SCOPE) ctrl = g_sessionProvider.getVehicleStateCtrl() ctrl.onVehicleStateUpdated -= self.__onVehicleStateUpdated ctrl.onPostMortemSwitched -= self.__onPostMortemSwitched if self.colorManager: self.colorManager.dispossessUI() voice = VoiceChatInterface.g_instance if voice: voice.dispossessUI(self.proxy) voice.onPlayerSpeaking -= self.setPlayerSpeaking voice.onVoiceChatInitFailed -= self.onVoiceChatInitFailed if self.__plugins is not None: self.__plugins.stop() self.__plugins.fini() self.__plugins = None if self.movingText is not None: self.movingText.dispossessUI() self.movingText = None if self.__soundManager is not None: self.__soundManager.dispossessUI() self.__soundManager = None if self.colorManager is not None: self.colorManager.dispossessUI() self.colorManager = None if self.component: g_repeatKeyHandlers.discard(self.component.handleKeyEvent) g_settingsCore.onSettingsChanged -= self.__accs_onSettingsChanged g_settingsCore.interfaceScale.onScaleChanged -= self.__onRecreateDevice self.__timersBar.destroy() self.__teamBasesPanel.destroy() self.__debugPanel.destroy() self.__consumablesPanel.destroy() self.__damagePanel.destroy() self.__markersManager.destroy() self.__ingameHelp.destroy() self.__vErrorsPanel.destroy() self.__vMsgsPanel.destroy() self.__pMsgsPanel.destroy() self.__radialMenu.destroy() self.__minimap.destroy() self.__ribbonsPanel.destroy() self.__fragCorrelation.destroy() self.__statsForm.destroy() g_sessionProvider.clearBattleUI() if self.__arenaCtrl is not None: g_sessionProvider.removeArenaCtrl(self.__arenaCtrl) self.__arenaCtrl.clear() self.__arenaCtrl = None self.__ppSwitcher.destroy() self.__leftPlayersPanel.dispossessUI() self.__rightPlayersPanel.dispossessUI() MessengerEntry.g_instance.gui.invoke('dispossessUI') self.__arena = None g_guiResetters.discard(self.__onRecreateDevice) self.__settingsInterface.dispossessUI() self.__settingsInterface = None VoiceChatInterface.g_instance.onVoiceChatInitFailed -= self.onVoiceChatInitFailed if self.__dynSquadListener: self.__dynSquadListener.destroy() self.__dynSquadListener = None BattleWindow.beforeDelete(self) event = events.AppLifeCycleEvent g_eventBus.handleEvent(event(self.__ns, event.DESTROYED))
def destroy(self): g_guiResetters.discard(self.as_onScreenResS) self.__flashObject = None self.__battleWindow = None self.__parentUI = None
def stop(self): g_guiResetters.discard(self.onScreenResolutionChanged) GUI.delRoot(self.window)
def fini(self): connectionManager.onDisconnected -= self.scaleChanged connectionManager.onConnected -= self.scaleChanged self.proxy.onSettingsChanged -= self.onSettingsChanged g_guiResetters.discard(self.scaleChanged)
def onDelete(self): g_guiResetters.discard(self.onUpdateStage) self.close()
def beforeDelete(self): LOG_DEBUG('[App] beforeDelete') from gui.Scaleform.Waiting import Waiting Waiting.setWainingViewGetter(None) g_guiResetters.discard(self.onUpdateStage) g_repeatKeyHandlers.discard(self.component.handleKeyEvent) if self._containerMgr is not None: self._containerMgr.destroy() self._containerMgr = None if self._loaderMgr is not None: self._loaderMgr.destroy() self._loaderMgr = None if self._cacheMgr is not None: self._cacheMgr.destroy() self._cacheMgr = None if self._contextMgr is not None: self._contextMgr.destroy() self._contextMgr = None if self._popoverManager is not None: self._popoverManager.destroy() self._popoverManager = None if self._soundMgr is not None: self._soundMgr.destroy() self._soundMgr = None if self._varsMgr is not None: self._varsMgr.destroy() self._varsMgr = None if self.__toolTip is not None: self.__toolTip.destroy() self.__toolTip = None if self._colorSchemeMgr is not None: self._colorSchemeMgr.destroy() self._colorSchemeMgr = None if self._eventLogMgr is not None: self._eventLogMgr.destroy() self._eventLogMgr = None if self._guiItemsMgr is not None: self._guiItemsMgr.destroy() self._guiItemsMgr = None if self._tweenMgr is not None: self._tweenMgr.destroy() self._tweenMgr = None if self._voiceChatMgr is not None: self._voiceChatMgr.destroy() self._voiceChatMgr = None if self._gameInputMgr is not None: self._gameInputMgr.destroy() self._gameInputMgr = None if self._utilsMgr is not None: self._utilsMgr.destroy() self._utilsMgr = None if self._tutorialMgr is not None: self._tutorialMgr.destroy() self._tutorialMgr = None if self._businessHandler is not None: self._businessHandler.destroy() self._businessHandler = None self._dispose() super(App, self).beforeDelete() self.fireEvent( AppLifeCycleEvent(self.__ns, AppLifeCycleEvent.DESTROYED))