def _dispose(self): battle_selector_items.clear() g_clientUpdateManager.removeObjectCallbacks(self) self.stopGlobalListening() self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__handleFightButtonUpdated, scope=EVENT_BUS_SCOPE.LOBBY) self.removeListener(events.CoolDownEvent.PREBATTLE, self.__handleSetPrebattleCoolDown, scope=EVENT_BUS_SCOPE.LOBBY) self.removeListener(events.BubbleTooltipEvent.SHOW, self.__showBubbleTooltip, scope=EVENT_BUS_SCOPE.LOBBY) self.removeListener(events.CloseWindowEvent.GOLD_FISH_CLOSED, self.__onGoldFishWindowClosed, scope=EVENT_BUS_SCOPE.LOBBY) game_control.g_instance.gameSession.onPremiumNotify -= self.__onPremiumTimeChanged game_control.g_instance.wallet.onWalletStatusChanged -= self.__onWalletChanged game_control.g_instance.igr.onIgrTypeChanged -= self.__onIGRChanged g_lobbyContext.getServerSettings().onServerSettingsChange -= self.__onServerSettingChanged g_currentVehicle.onChanged -= self.__onVehicleChanged g_currentPreviewVehicle.onChanged -= self.__onVehicleChanged g_eventsCache.onSyncCompleted -= self.__onEventsCacheResync g_itemsCache.onSyncCompleted -= self.__onItemsChanged self.__falloutCtrl.onVehiclesChanged -= self.__updateFalloutSettings self.__falloutCtrl.onSettingsChanged -= self.__updateFalloutSettings self.__falloutCtrl = None self.app.containerManager.onViewAddedToContainer -= self.__onViewAddedToContainer game_control.g_instance.boosters.onBoosterChangeNotify -= self.__onUpdateGoodies g_preDefinedHosts.onPingPerformed -= self.__onPingPerformed g_settingsCore.onSettingsChanged -= self.__onSettingsChanged super(LobbyHeader, self)._dispose() return
def _dispose(self): g_itemsCache.onSyncCompleted -= self._onShopResync g_clientUpdateManager.removeObjectCallbacks(self) g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged self.stopGlobalListening() self.removeListener(events.TechnicalMaintenanceEvent.RESET_EQUIPMENT, self.__resetEquipment, scope=EVENT_BUS_SCOPE.LOBBY) super(TechnicalMaintenance, self)._dispose()
def _dispose(self): """ Clear attrs and subscriptions """ g_clientUpdateManager.removeObjectCallbacks(self) g_playerEvents.onCenterIsLongDisconnected -= self._update super(Shop, self)._dispose()
def stop(self): if self.__weaver is not None: self.__weaver.clear() self.__weaver = None g_clientUpdateManager.removeObjectCallbacks(self) g_playerEvents.onEnqueueEventBattlesFailure -= self.__pe_onEnqueueEventBattlesFailure g_playerEvents.onEnqueueRandomFailure -= self.__pe_onEnqueueRandomFailure
def _dispose(self): g_eventsCache.onSelectedQuestsChanged -= self._onSelectedQuestsChanged g_eventsCache.onProgressUpdated -= self._onProgressUpdated g_clientUpdateManager.removeObjectCallbacks(self) self.__proxy = None super(QuestsSeasonsView, self)._dispose() return
def _dispose(self): self.__items = None self.__tankman = None self.__selectedVehicleCD = None g_clientUpdateManager.removeObjectCallbacks(self) super(RoleChangeWindow, self)._dispose() return
def _unsubscribe(self): if not self.__isSubscribe: return self.__isSubscribe = False game_control.g_instance.wallet.onWalletStatusChanged -= self.onWalletChanged g_playerEvents.onServerStatsReceived -= self.onStatsReceived g_clientUpdateManager.removeObjectCallbacks(self)
def _dispose(self): g_itemsCache.onSyncCompleted -= self.__onUpdateHandler game_control.g_instance.gameSession.onPremiumNotify -= self.__onUpdateHandler g_clientUpdateManager.removeObjectCallbacks(self) self._items = None self._actualPremiumCost = None super(PremiumWindow, self)._dispose()
def _dispose(self): """ Dispose method should never be called before populate finish. So, we're delaying its invoke til populate load is finished. """ self.removeListener(LobbySimpleEvent.HIDE_HANGAR, self._onCustomizationShow) self.removeListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene) self.removeListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY) g_itemsCache.onSyncCompleted -= self.onCacheResync g_clientUpdateManager.removeObjectCallbacks(self) g_playerEvents.onVehicleBecomeElite -= self.__onVehicleBecomeElite g_playerEvents.onBattleResultsReceived -= self.onFittingUpdate g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged game_control.g_instance.igr.onIgrTypeChanged -= self.__onIgrTypeChanged game_control.g_instance.fallout.onSettingsChanged -= self.__switchCarousels g_hangarSpace.onObjectSelected -= self.__on3DObjectSelected g_hangarSpace.onObjectUnselected -= self.__on3DObjectUnSelected g_hangarSpace.onObjectClicked -= self.__on3DObjectClicked g_prbCtrlEvents.onVehicleClientStateChanged -= self.__onVehicleClientStateChanged if self.__selected3DEntity is not None: BigWorld.wgDelEdgeDetectEntity(self.__selected3DEntity) self.__selected3DEntity = None self.closeHelpLayout() self.stopGlobalListening() LobbySubView._dispose(self) return
def _dispose(self): super(VehiclePreview, self)._dispose() g_clientUpdateManager.removeObjectCallbacks(self) g_currentPreviewVehicle.onComponentInstalled -= self.__updateStatus g_currentPreviewVehicle.onVehicleUnlocked -= self.__updateBtnState g_currentPreviewVehicle.onVehicleInventoryChanged -= self.__onInventoryChanged g_currentPreviewVehicle.onChanged -= self.__onVehicleChanged g_currentPreviewVehicle.selectNoVehicle()
def clear(self): g_clientUpdateManager.removeObjectCallbacks(self) g_playerEvents.onShopResync -= self.__pe_onShopResync self._accCredits = 0 self._itemPrice = None self.isSubscribed = False self.isRunning = False return
def _dispose(self): self.__currentLockedView = None super(FightButton, self)._dispose() g_currentVehicle.onChanged -= self.update self.app.containerManager.onViewAddedToContainer -= self.__onViewAddedToContainer self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__handleFightButtonUpdate, scope=EVENT_BUS_SCOPE.LOBBY) g_clientUpdateManager.removeObjectCallbacks(self) return
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) g_eventsCache.onSyncCompleted -= self.__onUpdateGoodies self._availableBoosters = None self._boosterQuests = None self._activeBoosters = None self._isReceivedBoostersTab = None super(BoostersWindow, self)._dispose()
def stopListen(self): g_clientUpdateManager.removeObjectCallbacks(self) g_itemsCache.onSyncCompleted -= self.__items_onSyncCompleted g_playerEvents.onCenterIsLongDisconnected -= self.__center_onIsLongDisconnected comparisonBasket = getVehicleComparisonBasketCtrl() comparisonBasket.onChange -= self.__onVehCompareBasketChanged comparisonBasket.onSwitchChange -= self.__onVehCompareBasketSwitchChange super(_ItemsCacheListener, self).stopListen()
def _dispose(self): self._items = None self._isPanelInactive = None self._wasPopulated = None self._slotsMap = None game_control.g_instance.boosters.onBoosterChangeNotify -= self.__onUpdateGoodies g_clientUpdateManager.removeObjectCallbacks(self) super(BoostersPanelComponent, self)._dispose()
def destroy(self): self.__vehInvID = 0 self.__clearChangeCallback() self.onChanged.clear() self.onChangeStarted.clear() g_clientUpdateManager.removeObjectCallbacks(self) g_hangarSpace.removeVehicle() self.selectNoVehicle()
def destroy(self): """ destroy operation after exchange dialog close """ self.__inventoryCount = None self.__installVehicleCD = None g_clientUpdateManager.removeObjectCallbacks(self) super(ExchangeCreditsMeta, self).destroy() return
def destroy(self): """ destroy operation after exchange dialog close """ g_clientUpdateManager.removeObjectCallbacks(self) self._parentCD = None self._xpCost = None super(ExchangeXpMeta, self).destroy() return
def destroy(self): self.__vehInvID = 0 self.__clearChangeCallback() self.onChanged.clear() self.onChangeStarted.clear() g_clientUpdateManager.removeObjectCallbacks(self) game_control.g_instance.igr.onIgrTypeChanged -= self.onIgrTypeChanged g_hangarSpace.removeVehicle() self.selectNoVehicle()
def _dispose(self): self.__currentVehicle.onChanged -= self.__onEventsUpdated self.__currentVehicle = None g_clientUpdateManager.removeObjectCallbacks(self) game_control.g_instance.igr.onIgrTypeChanged -= self.__onEventsUpdated g_eventsCache.onSyncCompleted -= self.__onEventsCacheSyncCompleted self.removeListener(events.LobbySimpleEvent.EVENTS_UPDATED, self.__onEventsUpdated) super(QuestsCurrentTab, self)._dispose() return
def _stop(self, doNotifyInStart = False): LOG_DEBUG('GameSessionController::stop') self.stopNotification() self.__curfewBlockTime = None self.__curfewUnblockTime = None self.__sessionStartedAt = -1 self.__doNotifyInStart = doNotifyInStart self.__clearBanCallback() g_clientUpdateManager.removeObjectCallbacks(self)
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) g_playerEvents.onVehicleBecomeElite -= self.__onVehicleBecomeElite g_playerEvents.onBattleResultsReceived -= self.onFittingUpdate g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged game_control.g_instance.igr.onIgrTypeChanged -= self.__onIgrTypeChanged self.closeHelpLayout() self.stopGlobalListening() LobbySubView._dispose(self)
def _stop(self, doNotifyInStart = False): """ Stopping current game session """ LOG_DEBUG('GameSessionController::stop') self.stopNotification() self.__sessionStartedAt = -1 self.__stats = None self.__doNotifyInStart = doNotifyInStart self.__clearBanCallback() g_clientUpdateManager.removeObjectCallbacks(self) return
def destroy(self): self.__vehInvID = 0 self.__clearChangeCallback() self.onChanged.clear() self.onChangeStarted.clear() g_clientUpdateManager.removeObjectCallbacks(self) game_control.g_instance.igr.onIgrTypeChanged -= self.onIgrTypeChanged game_control.g_instance.rentals.onRentChangeNotify -= self.onRentChange game_control.getFalloutCtrl().onSettingsChanged -= self.__onFalloutChanged _getHangarSpace().removeVehicle() self.selectNoVehicle()
def _dispose(self): super(VehiclePreview, self)._dispose() g_clientUpdateManager.removeObjectCallbacks(self) g_currentPreviewVehicle.onComponentInstalled -= self.__updateStatus g_currentPreviewVehicle.onVehicleUnlocked -= self.__updateBtnState g_currentPreviewVehicle.onVehicleInventoryChanged -= self.__onInventoryChanged g_currentPreviewVehicle.onChanged -= self.__onVehicleChanged comparisonBasket = getVehicleComparisonBasketCtrl() comparisonBasket.onChange -= self.__onCompareBasketChanged comparisonBasket.onSwitchChange -= self.__updateHeaderData g_currentPreviewVehicle.selectNoVehicle()
def _dispose(self): super(CyberSportUnitsListView, self)._dispose() if self._isBackButtonClicked: unit_ext.destroyListReq() self._isBackButtonClicked = False else: listReq = unit_ext.getListReq() if listReq: listReq.stop() self.removeListener(CSVehicleSelectEvent.VEHICLE_SELECTED, self.__onVehiclesSelectedTeams) g_clientUpdateManager.removeObjectCallbacks(self)
def fini(self): self.__currentTabIdx = None self.__eManager.clear() g_clientUpdateManager.removeObjectCallbacks(self) g_eventsCache.onSyncCompleted -= self.__onQuestsUpdate for tab in self.__tabs.itervalues(): tab.fini() self.__tabs.clear() self.__activeBoostersCount = None return
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) g_eventsCache.onSyncCompleted -= self.__onQuestsUpdate self.__availableBoosters = None self.__boosterQuests = None self.__activeBoosters = None self.__isReceivedBoostersTab = None self.__qualities = None self.__boosterTypes = None self.__questsDescriptor = None super(BoostersWindow, self)._dispose() return
def _dispose(self): super(Store, self)._dispose() while len(self.__nations): self.__nations.pop() self.__nations = None self.__filterHash.clear() self.__filterHash = None self.__clearSubFilter() g_playerEvents.onShopResync -= self._update g_clientUpdateManager.removeObjectCallbacks(self) return
def stop(self): g_wgncEvents.onProxyDataItemShowByDefault -= self._onProxyDataItemShowByDefault g_clientUpdateManager.removeObjectCallbacks(self) if self.__clanCache is not None: self.__clanCache.onRead -= self._onClanCacheRead self.__profile.updateClanCache(self.__clanCache) self.__clanCache.write() self.__clanCache = None if self.__profile is not None: self.__profile.fini() self.__profile = None self.__state.logout() return
def _dispose(self): self.__rankedController.onUpdated -= self.refreshUrl g_clientUpdateManager.removeObjectCallbacks(self) super(RankedSeasonGapPage, self)._dispose()
def stop(self): g_clientUpdateManager.removeObjectCallbacks(self)
def destroy(self): g_clientUpdateManager.removeObjectCallbacks(self) self._parentCD = None self._xpCost = None super(ExchangeXpMeta, self).destroy() return
def _dispose(self): g_playerEvents.onBattleResultsReceived -= self.__onFittingUpdate self.app.loaderManager.onViewLoaded -= self.__onViewLoaded g_clientUpdateManager.removeObjectCallbacks(self) super(TankCarousel, self)._dispose()
def _dispose(self): g_itemsCache.onSyncCompleted -= self.__setExchangeRateCallBack self.wallet.onWalletStatusChanged -= self.__setWalletCallback g_clientUpdateManager.removeObjectCallbacks(self) super(ExchangeWindow, self)._dispose()
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) game_control.g_instance.igr.onIgrTypeChanged -= self.__onQuestsUpdated g_eventsCache.potapov.onProgressUpdated -= self.__onQuestsUpdated super(QuestsControl, self)._dispose()
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) super(RetrainCrewWindow, self)._dispose()
def _dispose(self): self.itemsCache.onSyncCompleted -= self.__setXPConversationCallBack self.wallet.onWalletStatusChanged -= self.__setWalletCallback g_clientUpdateManager.removeObjectCallbacks(self) super(ExchangeXPWindow, self)._dispose()
def _dispose(self): g_itemsCache.onSyncCompleted -= self._initData g_clientUpdateManager.removeObjectCallbacks(self) g_gameCtrl.rentals.onRentChangeNotify -= self._onRentChange super(VehicleBuyWindow, self)._dispose()
def _dispose(self): self.stopGlobalListening() g_clientUpdateManager.removeObjectCallbacks(self) super(AmmunitionPanel, self)._dispose()
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) super(CrewOperationsPopOver, self)._dispose()
def _removeListeners(self): g_clientUpdateManager.removeObjectCallbacks(self)
def fini(self): g_clientUpdateManager.removeObjectCallbacks(self, force=True) game_control.g_instance.rentals.onRentChangeNotify -= self.__onRentUpdated game_control.g_instance.igr.onIgrTypeChanged -= self.__onIgrRoomChanged
def _dispose(self): self.stopGlobalListening() self.itemsCache.onSyncCompleted -= self._refreshData g_clientUpdateManager.removeObjectCallbacks(self) self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__updatePrbState, scope=EVENT_BUS_SCOPE.LOBBY) super(PersonalCase, self)._dispose()
def clear(self): g_clientUpdateManager.removeObjectCallbacks(self) self.isSubscribed = False self._premiumDiscounts = None
def clear(self): g_clientUpdateManager.removeObjectCallbacks(self) self.isSubscribed = False self.isRunning = False
def fini(self): self.onSyncStarted.clear() self.onSyncCompleted.clear() g_clientUpdateManager.removeObjectCallbacks(self)
def clear(self): g_clientUpdateManager.removeObjectCallbacks(self) g_currentVehicle.onChanged -= self.__cv_onChanged self.isSubscribed = False self.isRunning = False
def __stop(self): g_clientUpdateManager.removeObjectCallbacks(self) from CurrentVehicle import g_currentVehicle g_currentVehicle.onChangeStarted -= self.__onVehicleChanging
def _dispose(self): g_clientUpdateManager.removeObjectCallbacks(self) self.igrCtrl.onIgrTypeChanged -= self.__onQuestsUpdated self.eventsCache.onProgressUpdated -= self.__onQuestsUpdated super(QuestsControl, self)._dispose()
def __clear(self): lobbyContext = dependency.instance(ILobbyContext) lobbyContext.getServerSettings( ).onServerSettingsChange -= self.__updateRankedSettings self.stopNotification() g_clientUpdateManager.removeObjectCallbacks(self)
def clear(self): super(C11nMessageDecorator, self).clear() g_clientUpdateManager.removeObjectCallbacks(self) g_eventBus.removeListener( HangarSpacesSwitcherEvent.SWITCH_TO_HANGAR_SPACE, self._updateButtons, EVENT_BUS_SCOPE.LOBBY)
def clear(self): super(C11nMessageDecorator, self).clear() g_eventBus.removeListener(VIEW_ALIAS.HERO_VEHICLE_PREVIEW, self.__lockButtons, EVENT_BUS_SCOPE.LOBBY) g_eventBus.removeListener(VIEW_ALIAS.BATTLE_QUEUE, self.__lockButtons, EVENT_BUS_SCOPE.LOBBY) g_eventBus.removeListener(VIEW_ALIAS.LOBBY_HANGAR, self.__updateButtons, EVENT_BUS_SCOPE.LOBBY) g_clientUpdateManager.removeObjectCallbacks(self)
def _dispose(self): self.falloutCtrl.onSettingsChanged -= self._updateFalloutSettings g_clientUpdateManager.removeObjectCallbacks(self) super(AmmunitionPanel, self)._dispose()
def stop(self): g_clientUpdateManager.removeObjectCallbacks(self) self.__clearUnsuitableState()
def _unsubscribe(self): g_clientUpdateManager.removeObjectCallbacks(self)
def __destroy(self): self._unlockCtx = None self._costCtx = None self.__itemType = None g_clientUpdateManager.removeObjectCallbacks(self) return
def fini(self): g_clientUpdateManager.removeObjectCallbacks(self) self.__itemsCache.onSyncCompleted -= self.__onCacheResync
def stop(self): """ Stops listening for events """ g_clientUpdateManager.removeObjectCallbacks(self) self.__clearUnsuitableState()
def _dispose(self): self.removeListener(SkillDropEvent.SKILL_DROPPED_SUCCESSFULLY, self.__skillDropWindowCloseHandler) g_clientUpdateManager.removeObjectCallbacks(self) super(ExchangeFreeToTankmanXpWindow, self)._dispose()