def __removeListeners(self): model = self.viewModel model.onBuyClick -= self.__onBuyClick model.onAboutClick -= self.__onAboutClick model.onViewLoaded -= self.__showViewCallback model.onClose -= self.__onClose model.intro.onClose -= self.__onIntroCloseClick model.intro.onVideo -= self.__showIntroVideo model.onGoToChapter -= self.__onGoToChapter model.widget3dStyle.onPreviewClick -= self.__onPreviewClick model.widget3dStyle.onSelectStyle -= self.__onSelectStyle model.onTakeClick -= self.__onTakeClick model.onOpenShopClick -= self.__onOpenShopClick model.onTakeAllClick -= self.__onTakeAllClick model.onPointsInfoClick -= self.__onPointsInfoClick model.onFinishedAnimation -= self.__resetReplaceRewardAnimations model.onLevelsAnimationFinished -= self.__resetLevelAnimations self.__battlePassController.onPointsUpdated -= self.__onPointsUpdated self.__battlePassController.onBattlePassIsBought -= self.__onBattlePassBought self.__battlePassController.onBattlePassSettingsChange -= self.__onBattlePassSettingsChange self.__battlePassController.onRewardSelectChange -= self.__onRewardSelectChange self.__battlePassController.onOffersUpdated -= self.__onOffersUpdated self.__battlePassController.onSeasonStateChange -= self.__updateProgressData self.__wallet.onWalletStatusChanged -= self.__updateWalletAvailability g_clientUpdateManager.removeCurrencyCallback(Currency.BPCOIN, self.__updateBalance) g_eventBus.removeListener(events.MissionsEvent.ON_TAB_CHANGED, self.__onMissionsTabChanged, EVENT_BUS_SCOPE.LOBBY) g_eventBus.removeListener(events.FocusEvent.COMPONENT_FOCUSED, self.__onFocus) g_eventBus.removeListener(events.BattlePassEvent.ON_PURCHASE_LEVELS, self.__onPurchaseLevels, EVENT_BUS_SCOPE.LOBBY)
def __unsubscribe(self): self.__itemsCache.onSyncCompleted -= self.__shopResyncHandler g_clientUpdateManager.removeCurrencyCallback(Currency.GOLD, self.__onSetGoldHandler) g_clientUpdateManager.removeCurrencyCallback( Currency.CRYSTAL, self.__onSetCrystalHandler) g_clientUpdateManager.removeCallback('goodies', self.__onSetGoodiesHandler)
def _dispose(self): super(VehicleSellDialog, self)._dispose() self.itemsCache.onSyncCompleted -= self.__shopResyncHandler g_clientUpdateManager.removeCurrencyCallback(Currency.GOLD, self.onSetGoldHndlr)