Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 def _dispose(self):
     battle_selector_items.clear()
     g_clientUpdateManager.removeObjectCallbacks(self)
     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)
     game_control.g_instance.gameSession.onPremiumNotify -= self.__onPremiumTimeChanged
     game_control.g_instance.wallet.onWalletStatusChanged -= self.__onWalletChanged
     g_currentVehicle.onChanged -= self.__onVehicleChanged
     g_eventsCache.onSyncCompleted -= self.__onEventsCacheResync
     self.app.containerManager.onViewAddedToContainer -= self.__onViewAddedToContainer
     self.stopGlobalListening()
     super(LobbyHeader, self)._dispose()
 def __onServerSettingChanged(self, diff):
     if 'isSandboxEnabled' in diff:
         self._updatePrebattleControls()
     if 'isBootcampEnabled' in diff:
         battle_selector_items.clear()
         battle_selector_items.create()
         self._updatePrebattleControls()
     if 'strongholdSettings' in diff:
         self._updateHangarMenuData()
         self._updatePrebattleControls()
     if 'ranked_config' in diff:
         self._updatePrebattleControls()
     if 'hallOfFame' in diff:
         self.__updateProfileTabCounter()
     if 'isEpicRandomEnabled' in diff:
         self.__updateHangarMenuData()
         self.__updatePrebattleControls()
 def _dispose(self):
     battle_selector_items.clear()
     self.__removeListeners()
     super(LobbyHeader, self)._dispose()