コード例 #1
0
ファイル: lobbyheader.py プロジェクト: webiumsk/WOT-0.9.15-CT
 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
コード例 #2
0
 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()
コード例 #3
0
ファイル: storeshop.py プロジェクト: aevitas/wotsdk
 def _dispose(self):
     """
     Clear attrs and subscriptions
     """
     g_clientUpdateManager.removeObjectCallbacks(self)
     g_playerEvents.onCenterIsLongDisconnected -= self._update
     super(Shop, self)._dispose()
コード例 #4
0
 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
コード例 #5
0
 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
コード例 #6
0
ファイル: rolechangewindow.py プロジェクト: webiumsk/WoT
 def _dispose(self):
     self.__items = None
     self.__tankman = None
     self.__selectedVehicleCD = None
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(RoleChangeWindow, self)._dispose()
     return
コード例 #7
0
ファイル: lobbyheader.py プロジェクト: 19colt87/WOTDecompiled
 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)
コード例 #8
0
ファイル: premiumwindow.py プロジェクト: kblw/wot_client
 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()
コード例 #9
0
ファイル: hangarhangar.py プロジェクト: aevitas/wotsdk
 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
コード例 #10
0
 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()
コード例 #11
0
ファイル: triggers.py プロジェクト: krzcho/WOTDecompiled
 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
コード例 #12
0
ファイル: fightbutton.py プロジェクト: 19colt87/WOTDecompiled
 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
コード例 #13
0
ファイル: boosterswindow.py プロジェクト: kblw/wot_client
 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()
コード例 #14
0
ファイル: techtreelisteners.py プロジェクト: aevitas/wotsdk
 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()
コード例 #15
0
 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()
コード例 #16
0
ファイル: currentvehicle.py プロジェクト: hat3k/WOTTankRanges
 def destroy(self):
     self.__vehInvID = 0
     self.__clearChangeCallback()
     self.onChanged.clear()
     self.onChangeStarted.clear()
     g_clientUpdateManager.removeObjectCallbacks(self)
     g_hangarSpace.removeVehicle()
     self.selectNoVehicle()
コード例 #17
0
 def destroy(self):
     """
     destroy operation after exchange dialog close
     """
     self.__inventoryCount = None
     self.__installVehicleCD = None
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(ExchangeCreditsMeta, self).destroy()
     return
コード例 #18
0
 def destroy(self):
     """
     destroy operation after exchange dialog close
     """
     g_clientUpdateManager.removeObjectCallbacks(self)
     self._parentCD = None
     self._xpCost = None
     super(ExchangeXpMeta, self).destroy()
     return
コード例 #19
0
 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()
コード例 #20
0
 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
コード例 #21
0
 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)
コード例 #22
0
ファイル: hangar.py プロジェクト: 19colt87/WOTDecompiled
 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)
コード例 #23
0
 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
コード例 #24
0
ファイル: currentvehicle.py プロジェクト: webiumsk/WOT-0.9.12
 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()
コード例 #25
0
 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()
コード例 #26
0
 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)
コード例 #27
0
    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
コード例 #28
0
 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
コード例 #29
0
ファイル: __init__.py プロジェクト: 19colt87/WOTDecompiled
    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
コード例 #30
0
ファイル: clan_controller.py プロジェクト: webiumsk/WOT0.10.0
 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
コード例 #31
0
 def _dispose(self):
     self.__rankedController.onUpdated -= self.refreshUrl
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(RankedSeasonGapPage, self)._dispose()
コード例 #32
0
 def stop(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
コード例 #33
0
 def destroy(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     self._parentCD = None
     self._xpCost = None
     super(ExchangeXpMeta, self).destroy()
     return
コード例 #34
0
 def _dispose(self):
     g_playerEvents.onBattleResultsReceived -= self.__onFittingUpdate
     self.app.loaderManager.onViewLoaded -= self.__onViewLoaded
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(TankCarousel, self)._dispose()
コード例 #35
0
 def _dispose(self):
     g_itemsCache.onSyncCompleted -= self.__setExchangeRateCallBack
     self.wallet.onWalletStatusChanged -= self.__setWalletCallback
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(ExchangeWindow, self)._dispose()
コード例 #36
0
ファイル: questscontrol.py プロジェクト: jamesxia4/wot_client
 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()
コード例 #37
0
 def _dispose(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(RetrainCrewWindow, self)._dispose()
コード例 #38
0
 def _dispose(self):
     self.itemsCache.onSyncCompleted -= self.__setXPConversationCallBack
     self.wallet.onWalletStatusChanged -= self.__setWalletCallback
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(ExchangeXPWindow, self)._dispose()
コード例 #39
0
 def _dispose(self):
     g_itemsCache.onSyncCompleted -= self._initData
     g_clientUpdateManager.removeObjectCallbacks(self)
     g_gameCtrl.rentals.onRentChangeNotify -= self._onRentChange
     super(VehicleBuyWindow, self)._dispose()
コード例 #40
0
 def _dispose(self):
     self.stopGlobalListening()
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(AmmunitionPanel, self)._dispose()
コード例 #41
0
 def _dispose(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(CrewOperationsPopOver, self)._dispose()
コード例 #42
0
ファイル: clientcurrentvehicle.py プロジェクト: Difrex/wotsdk
 def _removeListeners(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
コード例 #43
0
ファイル: unit_ext.py プロジェクト: jamesxia4/wot_client
 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
コード例 #44
0
 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()
コード例 #45
0
 def clear(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     self.isSubscribed = False
     self._premiumDiscounts = None
コード例 #46
0
 def clear(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     self.isSubscribed = False
     self.isRunning = False
コード例 #47
0
 def fini(self):
     self.onSyncStarted.clear()
     self.onSyncCompleted.clear()
     g_clientUpdateManager.removeObjectCallbacks(self)
コード例 #48
0
 def clear(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     g_currentVehicle.onChanged -= self.__cv_onChanged
     self.isSubscribed = False
     self.isRunning = False
コード例 #49
0
 def __stop(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     from CurrentVehicle import g_currentVehicle
     g_currentVehicle.onChangeStarted -= self.__onVehicleChanging
コード例 #50
0
 def _dispose(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     self.igrCtrl.onIgrTypeChanged -= self.__onQuestsUpdated
     self.eventsCache.onProgressUpdated -= self.__onQuestsUpdated
     super(QuestsControl, self)._dispose()
コード例 #51
0
 def __clear(self):
     lobbyContext = dependency.instance(ILobbyContext)
     lobbyContext.getServerSettings(
     ).onServerSettingsChange -= self.__updateRankedSettings
     self.stopNotification()
     g_clientUpdateManager.removeObjectCallbacks(self)
コード例 #52
0
 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)
コード例 #53
0
 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)
コード例 #54
0
ファイル: AmmunitionPanel.py プロジェクト: kusaku/wot_scripts
 def _dispose(self):
     self.falloutCtrl.onSettingsChanged -= self._updateFalloutSettings
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(AmmunitionPanel, self)._dispose()
コード例 #55
0
 def stop(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     self.__clearUnsuitableState()
コード例 #56
0
 def _unsubscribe(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
コード例 #57
0
 def __destroy(self):
     self._unlockCtx = None
     self._costCtx = None
     self.__itemType = None
     g_clientUpdateManager.removeObjectCallbacks(self)
     return
コード例 #58
0
 def fini(self):
     g_clientUpdateManager.removeObjectCallbacks(self)
     self.__itemsCache.onSyncCompleted -= self.__onCacheResync
コード例 #59
0
 def stop(self):
     """
     Stops listening for events
     """
     g_clientUpdateManager.removeObjectCallbacks(self)
     self.__clearUnsuitableState()
コード例 #60
0
 def _dispose(self):
     self.removeListener(SkillDropEvent.SKILL_DROPPED_SUCCESSFULLY,
                         self.__skillDropWindowCloseHandler)
     g_clientUpdateManager.removeObjectCallbacks(self)
     super(ExchangeFreeToTankmanXpWindow, self)._dispose()