def stop(self): if GUI_SETTINGS.minimapSize: g_eventBus.removeListener( events.GameEvent.MINIMAP_CMD, self.__handleMinimapCmd, scope=EVENT_BUS_SCOPE.BATTLE ) g_repeatKeyHandlers.discard(self.__handleRepeatKeyEvent) super(GlobalSettingsPlugin, self).stop()
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 stop(self): if GUI_SETTINGS.minimapSize: g_eventBus.removeListener(events.GameEvent.MINIMAP_CMD, self.__handleMinimapCmd, scope=EVENT_BUS_SCOPE.BATTLE) g_repeatKeyHandlers.discard(self.__handleRepeatKeyEvent) super(GlobalSettingsPlugin, self).stop()
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 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 _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 stopControl(self): self.__messages = None g_repeatKeyHandlers.discard(self.__handleRepeatKeyEvent) return
def close(self): if self.component: g_repeatKeyHandlers.discard(self.component.handleKeyEvent) BattleWindow.close(self)
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 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 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 stop(self): self.__ui = None g_repeatKeyHandlers.discard(self.__handleRepeatKeyEvent) return