Пример #1
0
 def _populate(self):
     View._populate(self)
     self.__currIgrType = self.igrCtrl.getRoomType()
     g_prbLoader.setEnabled(True)
     self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT,
                      self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT,
                      self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.GameEvent.SCREEN_SHOT_MADE,
                      self.__handleScreenShotMade, EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(events.GameEvent.HIDE_LOBBY_SUB_CONTAINER_ITEMS,
                      self.__hideSubContainerItems, EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(events.GameEvent.REVEAL_LOBBY_SUB_CONTAINER_ITEMS,
                      self.__revealSubContainerItems,
                      EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(events.LobbySimpleEvent.TURN_LOBBY_DRAGGING_ON,
                      self.__turnLobbyDraggingOn, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.LobbySimpleEvent.TURN_LOBBY_DRAGGING_OFF,
                      self.__turnLobbyDraggingOff, EVENT_BUS_SCOPE.LOBBY)
     g_playerEvents.onEntityCheckOutEnqueued += self._onEntityCheckoutEnqueued
     g_playerEvents.onAccountBecomeNonPlayer += self._onAccountBecomeNonPlayer
     viewLifecycleHandler = _LobbySubViewsLifecycleHandler()
     self.__viewLifecycleWatcher.start(self.app.containerManager,
                                       [viewLifecycleHandler])
     self.igrCtrl.onIgrTypeChanged += self.__onIgrTypeChanged
     battlesCount = self.itemsCache.items.getAccountDossier().getTotalStats(
     ).getBattlesCount()
     epicBattlesCount = self.itemsCache.items.getAccountDossier(
     ).getEpicBattleStats().getBattlesCount()
     self.lobbyContext.updateBattlesCount(battlesCount, epicBattlesCount)
     self.fireEvent(
         events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
     self.bwProto.voipController.invalidateMicrophoneMute()
Пример #2
0
 def _populate(self):
     View._populate(self)
     self.__currIgrType = self.igrCtrl.getRoomType()
     g_prbLoader.setEnabled(True)
     self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT,
                      self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT,
                      self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.GameEvent.SCREEN_SHOT_MADE,
                      self.__handleScreenShotMade, EVENT_BUS_SCOPE.GLOBAL)
     g_playerEvents.onEntityCheckOutEnqueued += self._onEntityCheckoutEnqueued
     g_playerEvents.onAccountBecomeNonPlayer += self._onAccountBecomeNonPlayer
     viewLifecycleHandler = _LobbySubViewsLifecycleHandler()
     self.__viewLifecycleWatcher.start(self.app.containerManager,
                                       [viewLifecycleHandler])
     self.igrCtrl.onIgrTypeChanged += self.__onIgrTypeChanged
     battlesCount = self.itemsCache.items.getAccountDossier().getTotalStats(
     ).getBattlesCount()
     epicBattlesCount = self.itemsCache.items.getAccountDossier(
     ).getEpicBattleStats().getBattlesCount()
     self.lobbyContext.updateBattlesCount(battlesCount, epicBattlesCount)
     self.fireEvent(
         events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
     self.bwProto.voipController.invalidateMicrophoneMute()
     if self.tenYearsEventController.isEnabled():
         self.soundManager.playInstantSound(
             TenYearsEventSounds.EV_10Y_COUNTDOWN_ENTRY_POINT)
Пример #3
0
 def _populate(self):
     View._populate(self)
     self.__currIgrType = self.igrCtrl.getRoomType()
     g_prbLoader.setEnabled(True)
     self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.GameEvent.SCREEN_SHOT_MADE, self.__handleScreenShotMade, EVENT_BUS_SCOPE.GLOBAL)
     g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
     self.app.loaderManager.onViewLoadInit += self.__onViewLoadInit
     self.app.loaderManager.onViewLoaded += self.__onViewLoaded
     self.app.loaderManager.onViewLoadError += self.__onViewLoadError
     self.igrCtrl.onIgrTypeChanged += self.__onIgrTypeChanged
     self.__showBattleResults()
     battlesCount = g_itemsCache.items.getAccountDossier().getTotalStats().getBattlesCount()
     g_lobbyContext.updateBattlesCount(battlesCount)
     self.fireEvent(events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
     self.bwProto.voipController.invalidateMicrophoneMute()
Пример #4
0
 def _populate(self):
     View._populate(self)
     self.__currIgrType = gui.game_control.g_instance.igr.getRoomType()
     g_prbLoader.setEnabled(True)
     self.addListener(events.LobbySimpleEvent.SHOW_HELPLAYOUT, self.__showHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.LobbySimpleEvent.CLOSE_HELPLAYOUT, self.__closeHelpLayout, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.GameEvent.SCREEN_SHOT_MADE, self.__handleScreenShotMade, EVENT_BUS_SCOPE.GLOBAL)
     g_playerEvents.onVehicleBecomeElite += self.__onVehicleBecomeElite
     self.app.loaderManager.onViewLoadInit += self.__onViewLoadInit
     self.app.loaderManager.onViewLoaded += self.__onViewLoaded
     self.app.loaderManager.onViewLoadError += self.__onViewLoadError
     game_control.g_instance.igr.onIgrTypeChanged += self.__onIgrTypeChanged
     self.__showBattleResults()
     battlesCount = g_itemsCache.items.getAccountDossier().getTotalStats().getBattlesCount()
     g_lobbyContext.updateBattlesCount(battlesCount)
     self.fireEvent(events.GUICommonEvent(events.GUICommonEvent.LOBBY_VIEW_LOADED))
     keyCode = CommandMapping.g_instance.get('CMD_VOICECHAT_MUTE')
     if not BigWorld.isKeyDown(keyCode):
         VOIP.getVOIPManager().setMicMute(True)