def _dispose(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     g_currentPreviewVehicle.onComponentInstalled -= self.__updateStatus
     g_currentPreviewVehicle.onVehicleUnlocked -= self._updateBtnState
     g_currentPreviewVehicle.onVehicleInventoryChanged -= self.__onInventoryChanged
     g_currentPreviewVehicle.onChanged -= self.__onVehicleChanged
     self.comparisonBasket.onChange -= self.__onCompareBasketChanged
     self.comparisonBasket.onSwitchChange -= self.__updateHeaderData
     self.restores.onRestoreChangeNotify -= self.__onRestoreChanged
     self.lobbyContext.getServerSettings(
     ).onServerSettingsChange -= self.__onServerSettingsChanged
     self.hangarSpace.onSpaceCreate -= self.__onHangarCreateOrRefresh
     self.hangarSpace.setVehicleSelectable(
         self.__keepVehicleSelectionEnabled)
     self.removeListener(CameraRelatedEvents.CAMERA_ENTITY_UPDATED,
                         self.handleSelectedEntityUpdated)
     if self._needToResetAppearance:
         g_currentPreviewVehicle.selectNoVehicle()
         g_currentPreviewVehicle.resetAppearance()
     if self._backAlias == VIEW_ALIAS.VEHICLE_PREVIEW:
         g_currentVehicle.refreshModel()
     self._previewBackCb = None
     self.__previewDP = None
     LobbySelectableView._dispose(self)
     if self.__vehAppearanceChanged:
         g_currentPreviewVehicle.resetAppearance()
     return
Esempio n. 2
0
 def _dispose(self):
     self.removeListener(LobbySimpleEvent.WAITING_SHOWN,
                         self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE,
                         self.__handleFightButtonUpdated,
                         scope=EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(CameraRelatedEvents.CAMERA_ENTITY_UPDATED,
                         self.__handleSelectedEntityUpdated)
     self.itemsCache.onSyncCompleted -= self.onCacheResync
     g_clientUpdateManager.removeObjectCallbacks(self)
     g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged
     self.hangarSpace.onVehicleChangeStarted -= self.__onVehicleLoading
     self.hangarSpace.onVehicleChanged -= self.__onVehicleLoaded
     self.hangarSpace.onSpaceRefresh -= self.__onSpaceRefresh
     self.hangarSpace.onSpaceCreate -= self.__onSpaceCreate
     self.igrCtrl.onIgrTypeChanged -= self.__onIgrTypeChanged
     self.rankedController.onUpdated -= self.onRankedUpdate
     self.rankedController.onPrimeTimeStatusUpdated -= self.__onRankedPrimeStatusUpdate
     self.epicSkillsController.onUpdated -= self.__onEpicSkillsUpdate
     self.epicSkillsController.onPrimeTimeStatusUpdated -= self.__onEpicSkillsUpdate
     self.hangarSpace.setVehicleSelectable(False)
     g_prbCtrlEvents.onVehicleClientStateChanged -= self.__onVehicleClientStateChanged
     self._settingsCore.onSettingsChanged -= self.__onSettingsChanged
     self.lobbyContext.getServerSettings(
     ).onServerSettingsChange -= self.__onServerSettingChanged
     self.closeHelpLayout()
     self.stopGlobalListening()
     LobbySelectableView._dispose(self)
 def _dispose(self):
     self.removeListener(LobbySimpleEvent.WAITING_SHOWN,
                         self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE,
                         self.__handleFightButtonUpdated,
                         scope=EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(CameraRelatedEvents.CAMERA_ENTITY_UPDATED,
                         self.__handleSelectedEntityUpdated)
     self.itemsCache.onSyncCompleted -= self.onCacheResync
     g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged
     self.hangarSpace.onVehicleChangeStarted -= self.__onVehicleLoading
     self.hangarSpace.onVehicleChanged -= self.__onVehicleLoaded
     self.hangarSpace.onSpaceRefresh -= self.__onSpaceRefresh
     self.hangarSpace.onSpaceCreate -= self.__onSpaceCreate
     self.igrCtrl.onIgrTypeChanged -= self.__onIgrTypeChanged
     self.rankedController.onUpdated -= self.onRankedUpdate
     self.rankedController.onGameModeStatusTick -= self.__updateAlertMessage
     self.__mapboxCtrl.onPrimeTimeStatusUpdated -= self.__updateAlertMessage
     self.__funRandomController.onGameModeStatusUpdated -= self.__updateAlertMessage
     self.battleRoyaleController.onUpdated -= self.__updateBattleRoyaleComponents
     self.epicController.onUpdated -= self.__onEpicBattleUpdated
     self.epicController.onPrimeTimeStatusUpdated -= self.__onEpicBattleUpdated
     self.epicController.onGameModeStatusTick -= self.__updateAlertMessage
     self._promoController.onNewTeaserReceived -= self.__onTeaserReceived
     if self.__teaser is not None:
         self.__teaser.stop()
         self.__teaser = None
     self.hangarSpace.setVehicleSelectable(False)
     g_prbCtrlEvents.onVehicleClientStateChanged -= self.__onVehicleClientStateChanged
     unitMgr = prb_getters.getClientUnitMgr()
     if unitMgr:
         unitMgr.onUnitJoined -= self.__onUnitJoined
     g_playerEvents.onPrebattleInvitationAccepted -= self.__onPrebattleInvitationAccepted
     g_clientUpdateManager.removeObjectCallbacks(self)
     self._settingsCore.onSettingsChanged -= self.__onSettingsChanged
     self.lobbyContext.getServerSettings(
     ).onServerSettingsChange -= self.__onServerSettingChanged
     self.__wotPlusInfo.onRenewableSubscriptionDataChanged -= self.__onWotPlusDataChanged
     self.battlePassController.onSeasonStateChanged -= self.__switchCarousels
     self.__timer.clearCallbacks()
     self.__timer = None
     self.closeHelpLayout()
     self.stopGlobalListening()
     self._offersBannerController.hideBanners()
     LobbySelectableView._dispose(self)
     return
Esempio n. 4
0
 def _dispose(self):
     self.removeListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__handleFightButtonUpdated, scope=EVENT_BUS_SCOPE.LOBBY)
     self.removeListener(CameraRelatedEvents.CAMERA_ENTITY_UPDATED, self.__handleSelectedEntityUpdated)
     self.itemsCache.onSyncCompleted -= self.onCacheResync
     g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged
     self.hangarSpace.onVehicleChangeStarted -= self.__onVehicleLoading
     self.hangarSpace.onVehicleChanged -= self.__onVehicleLoaded
     self.hangarSpace.onSpaceRefresh -= self.__onSpaceRefresh
     self.hangarSpace.onSpaceCreate -= self.__onSpaceCreate
     self.igrCtrl.onIgrTypeChanged -= self.__onIgrTypeChanged
     self.rankedController.onUpdated -= self.onRankedUpdate
     self.rankedController.onGameModeStatusTick -= self.__updateAlertMessage
     self.battleRoyaleController.onUpdated -= self.__updateBattleRoyaleComponents
     self.epicController.onUpdated -= self.__onEpicSkillsUpdate
     self.epicController.onPrimeTimeStatusUpdated -= self.__onEpicSkillsUpdate
     self._promoController.onNewTeaserReceived -= self.__onTeaserReceived
     if self.__teaser is not None:
         self.__teaser.stop()
         self.__teaser = None
     self.hangarSpace.setVehicleSelectable(False)
     g_prbCtrlEvents.onVehicleClientStateChanged -= self.__onVehicleClientStateChanged
     g_clientUpdateManager.removeObjectCallbacks(self)
     self._settingsCore.onSettingsChanged -= self.__onSettingsChanged
     self.lobbyContext.getServerSettings().onServerSettingsChange -= self.__onServerSettingChanged
     self.battlePassController.onSeasonStateChange -= self.__switchCarousels
     self._countdownController.onEventStateChanged -= self.__updateTenYearsCountdownEntryPointVisibility
     self._countdownController.onEventBlockChanged -= self.__updateTenYearsCountdownEntryPointVisibility
     self._countdownController.onBlocksDataValidityChanged -= self.__updateTenYearsCountdownEntryPointVisibility
     self._hangarLoadingController.onHangarLoadedAfterLogin -= self.__onHangarLoadedAfterLogin
     self.closeHelpLayout()
     self.stopGlobalListening()
     g_eventBus.removeListener(AmmunitionSetupViewEvent.HINT_ZONE_ADD, self.__onHintZoneAdded, EVENT_BUS_SCOPE.LOBBY)
     g_eventBus.removeListener(AmmunitionSetupViewEvent.HINT_ZONE_HIDE, self.__onHintZoneHide, EVENT_BUS_SCOPE.LOBBY)
     self._offersBannerController.hideBanners()
     LobbySelectableView._dispose(self)
     return