def _populate(self): self._onPopulateStarted() LobbySubView._populate(self) g_currentVehicle.onChanged += self.__onCurrentVehicleChanged self.igrCtrl.onIgrTypeChanged += self.__onIgrTypeChanged self.falloutCtrl.onSettingsChanged += self.__onFalloutSettingsChanged self.itemsCache.onSyncCompleted += self.onCacheResync self.rankedController.onUpdated += self.onRankedUpdate self.rankedController.onPrimeTimeStatusUpdated += self.__onRankedPrimeStatusUpdate g_hangarSpace.onObjectSelected += self.__on3DObjectSelected g_hangarSpace.onObjectUnselected += self.__on3DObjectUnSelected g_hangarSpace.onObjectClicked += self.__on3DObjectClicked g_prbCtrlEvents.onVehicleClientStateChanged += self.__onVehicleClientStateChanged g_clientUpdateManager.addMoneyCallback(self.onMoneyUpdate) g_clientUpdateManager.addCallbacks({}) self.startGlobalListening() self.__updateAll() self.addListener(LobbySimpleEvent.HIDE_HANGAR, self._onCustomizationShow) self.addListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene) self.addListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY) self.addListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__handleFightButtonUpdated, scope=EVENT_BUS_SCOPE.LOBBY) self._onPopulateEnd()
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): """ 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) self.removeListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__handleFightButtonUpdated, scope=EVENT_BUS_SCOPE.LOBBY) self.itemsCache.onSyncCompleted -= self.onCacheResync g_clientUpdateManager.removeObjectCallbacks(self) g_currentVehicle.onChanged -= self.__onCurrentVehicleChanged self.igrCtrl.onIgrTypeChanged -= self.__onIgrTypeChanged self.falloutCtrl.onSettingsChanged -= self.__onFalloutSettingsChanged self.rankedController.onUpdated -= self.onRankedUpdate self.rankedController.onPrimeTimeStatusUpdated -= self.__onRankedPrimeStatusUpdate 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 _populate(self): LobbySubView._populate(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.startGlobalListening() game_control.g_instance.aogas.enableNotifyAccount() g_clientUpdateManager.addCallbacks( { "inventory.1": self.onVehiclesUpdate, "stats.multipliedXPVehs_r": self.onVehiclesUpdate, "stats.slots": self.onVehiclesUpdate, "stats.vehTypeXP": self.onVehiclesUpdate, "stats.unlocks": self.onVehiclesUpdate, "stats.eliteVehicles": self.onVehiclesUpdate, "stats.credits": self.onFittingUpdate, "stats.gold": self.onFittingUpdate, "stats.vehicleSellsLeft": self.onFittingUpdate, "stats.vehTypeLocks": self.onVehiclesUpdate, "cache.vehsLock": self.onVehiclesUpdate, } ) self.__onIgrTypeChanged() self.__updateAll()
def _dispose(self): 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.serverStats.onStatsReceived -= self.__onStatsReceived 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 _populate(self): LobbySubView._populate(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.serverStats.onStatsReceived += self.__onStatsReceived game_control.g_instance.fallout.onSettingsChanged += self.__switchCarousels g_itemsCache.onSyncCompleted += self.onCacheResync g_hangarSpace.onObjectSelected += self.__on3DObjectSelected g_hangarSpace.onObjectUnselected += self.__on3DObjectUnSelected g_hangarSpace.onObjectClicked += self.__on3DObjectClicked g_prbCtrlEvents.onVehicleClientStateChanged += self.__onVehicleClientStateChanged g_clientUpdateManager.addCallbacks({'stats.credits': self.onMoneyUpdate, 'stats.gold': self.onMoneyUpdate, 'stats.vehicleSellsLeft': self.onFittingUpdate, 'stats.slots': self.onFittingUpdate, 'goodies': self.onFittingUpdate}) self.startGlobalListening() self.__onIgrTypeChanged() if IS_SHOW_SERVER_STATS: self._updateCurrentServerInfo() self.__updateAll() self.addListener(LobbySimpleEvent.HIDE_HANGAR, self._onCustomizationShow) self.addListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene) self.addListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
def _populate(self): self._onPopulateStarted() LobbySubView._populate(self) g_currentVehicle.onChanged += self.__onCurrentVehicleChanged self.igrCtrl.onIgrTypeChanged += self.__onIgrTypeChanged self.falloutCtrl.onSettingsChanged += self.__onFalloutSettingsChanged self.itemsCache.onSyncCompleted += self.onCacheResync self.rankedController.onUpdated += self.onRankedUpdate self.rankedController.onPrimeTimeStatusUpdated += self.__onRankedPrimeStatusUpdate g_hangarSpace.onObjectSelected += self.__on3DObjectSelected g_hangarSpace.onObjectUnselected += self.__on3DObjectUnSelected g_hangarSpace.onObjectClicked += self.__on3DObjectClicked g_hangarSpace.setVehicleSelectable(True) g_prbCtrlEvents.onVehicleClientStateChanged += self.__onVehicleClientStateChanged self.lobbyContext.getServerSettings().onServerSettingsChange += self.__onServerSettingChanged self._newYearController.onStateChanged += self.__onNYStateChanged self._newYearController.boxStorage.onCountChanged += self.__onBoxesCountChanged g_clientUpdateManager.addMoneyCallback(self.onMoneyUpdate) g_clientUpdateManager.addCallbacks({}) self.startGlobalListening() self.as_initNYS(self._newYearController.isAvailable(), self._newYearController.isAvailable(), self._newYearController.boxStorage.count) self.__updateAll() self.addListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene) self.addListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY) self.addListener(events.FightButtonEvent.FIGHT_BUTTON_UPDATE, self.__handleFightButtonUpdated, scope=EVENT_BUS_SCOPE.LOBBY) selectedHangarEntityId = BigWorld.player().selectedHangarEntityId if selectedHangarEntityId is not None: entity = BigWorld.entities.get(selectedHangarEntityId, None) if entity is not None: self.__on3DObjectSelected(entity) self._onPopulateEnd() return
def _populate(self): LobbySubView._populate(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.serverStats.onStatsReceived += self.__onStatsReceived g_prbCtrlEvents.onPreQueueFunctionalChanged += self.onPreQueueFunctionalChanged g_itemsCache.onSyncCompleted += self.onCacheResync g_eventsCache.onSyncCompleted += self.onEventsCacheResync g_hangarSpace.onObjectSelected += self.__on3DObjectSelected g_hangarSpace.onObjectUnselected += self.__on3DObjectUnSelected g_clientUpdateManager.addCallbacks({ 'stats.credits': self.onMoneyUpdate, 'stats.gold': self.onMoneyUpdate, 'stats.vehicleSellsLeft': self.onFittingUpdate, 'stats.slots': self.onFittingUpdate }) self.startGlobalListening() self.__onIgrTypeChanged() if IS_SHOW_SERVER_STATS: self._updateCurrentServerInfo() self.__updateAll() self.addListener(LobbySimpleEvent.HIDE_HANGAR, self._onCustomizationShow) self.addListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene) self.addListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
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 self.igrCtrl.onIgrTypeChanged -= self.__onIgrTypeChanged self.falloutCtrl.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 _populate(self): LobbySubView._populate(self) g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite g_playerEvents.onBattleResultsReceived += self.onFittingUpdate g_currentVehicle.onChanged += self.__onCurrentVehicleChanged self.igrCtrl.onIgrTypeChanged += self.__onIgrTypeChanged self.falloutCtrl.onSettingsChanged += self.__switchCarousels g_itemsCache.onSyncCompleted += self.onCacheResync g_hangarSpace.onObjectSelected += self.__on3DObjectSelected g_hangarSpace.onObjectUnselected += self.__on3DObjectUnSelected g_hangarSpace.onObjectClicked += self.__on3DObjectClicked g_prbCtrlEvents.onVehicleClientStateChanged += self.__onVehicleClientStateChanged g_clientUpdateManager.addCallbacks({ 'stats.credits': self.onMoneyUpdate, 'stats.gold': self.onMoneyUpdate, 'stats.vehicleSellsLeft': self.onFittingUpdate, 'stats.slots': self.onFittingUpdate, 'goodies': self.onFittingUpdate }) self.startGlobalListening() self.__onIgrTypeChanged() self.__updateAll() self.addListener(LobbySimpleEvent.HIDE_HANGAR, self._onCustomizationShow) self.addListener(LobbySimpleEvent.NOTIFY_CURSOR_OVER_3DSCENE, self.__onNotifyCursorOver3dScene) self.addListener(LobbySimpleEvent.WAITING_SHOWN, self.__onWaitingShown, EVENT_BUS_SCOPE.LOBBY)
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 _dispose(self): g_eventsCache.onSyncCompleted -= self.onEventsCacheResync g_itemsCache.onSyncCompleted -= self.onCacheResync g_clientUpdateManager.removeObjectCallbacks(self) g_prbCtrlEvents.onPreQueueFunctionalChanged -= self.onPreQueueFunctionalChanged 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.serverStats.onStatsReceived -= self.__onStatsReceived self.closeHelpLayout() self.stopGlobalListening() LobbySubView._dispose(self)
def _populate(self): LobbySubView._populate(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.serverStats.onStatsReceived += self.__onStatsReceived g_prbCtrlEvents.onPreQueueFunctionalChanged += self.onPreQueueFunctionalChanged self.startGlobalListening() game_control.g_instance.aogas.enableNotifyAccount() g_itemsCache.onSyncCompleted += self.onCacheResync g_eventsCache.onSyncCompleted += self.onEventsCacheResync g_clientUpdateManager.addCallbacks({'stats.credits': self.onMoneyUpdate, 'stats.gold': self.onMoneyUpdate, 'stats.vehicleSellsLeft': self.onFittingUpdate, 'stats.slots': self.onFittingUpdate}) self.__onIgrTypeChanged() if IS_SHOW_SERVER_STATS: self._updateCurrentServerInfo() self.__updateAll()
def _dispose(self): 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.serverStats.onStatsReceived -= self.__onStatsReceived g_hangarSpace.onObjectSelected -= self.__on3DObjectSelected g_hangarSpace.onObjectUnselected -= self.__on3DObjectUnSelected 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 _populate(self): LobbySubView._populate(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.startGlobalListening() game_control.g_instance.aogas.enableNotifyAccount() g_clientUpdateManager.addCallbacks({'inventory.1': self.onVehiclesUpdate, 'stats.multipliedXPVehs_r': self.onVehiclesUpdate, 'stats.slots': self.onVehiclesUpdate, 'stats.vehTypeXP': self.onVehiclesUpdate, 'stats.unlocks': self.onVehiclesUpdate, 'stats.eliteVehicles': self.onVehiclesUpdate, 'stats.credits': self.onFittingUpdate, 'stats.gold': self.onFittingUpdate, 'stats.vehicleSellsLeft': self.onFittingUpdate, 'stats.vehTypeLocks': self.onVehiclesUpdate, 'cache.vehsLock': self.onVehiclesUpdate}) self.__onIgrTypeChanged() self.__updateAll()
def __init__(self, ctx = None): CyberSportRespawnViewMeta.__init__(self) LobbySubView.__init__(self) self.currentState = ''
def __init__(self, _ = None): LobbySubView.__init__(self, 0) self.__isCursorOver3dScene = False self.__selected3DEntity = None self.__currentCarouselAlias = None return
def __init__(self, _ = None): LobbySubView.__init__(self, 0) self.__isCursorOver3dScene = False self.__selected3DEntity = None
def __init__(self, ctx = None): LobbySubView.__init__(self, 0)
def __init__(self): LobbySubView.__init__(self)
def __init__(self, ctx=None): CyberSportRespawnViewMeta.__init__(self) LobbySubView.__init__(self) self.currentState = ''
def __init__(self, ctx = None): self.__ctx = ctx LobbySubView.__init__(self) self.__tabNavigator = None return
def __init__(self, _=None): LobbySubView.__init__(self, 0) self.__isCursorOver3dScene = False self.__selected3DEntity = None self.__currentCarouselAlias = None return
def _dispose(self): LobbySubView._dispose(self)
def __init__(self, _ = None): LobbySubView.__init__(self, 0) self.__browserID = None self.__controller = game_control.getEncyclopediaController() self.__urlFilter = None return
def __init__(self): LobbySubView.__init__(self, 0)
def _populate(self): LobbySubView._populate(self)
def __init__(self): LobbySubView.__init__(self, 0) self.__tabNavigator = None return
def __init__(self, _=None): LobbySubView.__init__(self, 0) self.__browserID = None self.__urlFilter = None return
def __init__(self, _=None): LobbySubView.__init__(self, 0) self.__isCursorOver3dScene = False self.__selected3DEntity = None
def __init__(self, ctx=None): self.__ctx = ctx LobbySubView.__init__(self) self.__tabNavigator = None return
def __init__(self, _=None): LobbySubView.__init__(self, 0) self.__browserID = None self.__controller = game_control.getEncyclopediaController() self.__urlFilter = None return