def showEventsWindow(self, eID, eventType): if self.__canNavigate(): if eventType == constants.EVENT_TYPE.C11N_PROGRESSION: _, vehicleIntCD = parseEventID(eID) vehicle = self.__itemsCache.items.getVehicleCopyByCD( vehicleIntCD) if not vehicle.isCustomizationEnabled(): _logger.warning( 'Trying to open customization from PBS for incompatible vehicle.' ) return app = self.__appLoader.getApp() view = app.containerManager.getViewByKey( ViewKey(VIEW_ALIAS.LOBBY_CUSTOMIZATION)) if view is None: lobbyHeaderNavigationPossible = yield self.__lobbyContext.isHeaderNavigationPossible( ) if not lobbyHeaderNavigationPossible: return self.soundManager.playInstantSound(SOUNDS.SELECT) else: lobbyHeaderNavigationPossible = yield self.__lobbyContext.isHeaderNavigationPossible( ) if not lobbyHeaderNavigationPossible: return if isCelebrityQuest(eID): _nyController = dependency.instance(INewYearController) if not _nyController.isEnabled(): _nyController.showStateMessage() return quests_events.showMission(eID, eventType) self.destroy() return
def goToTask(self, idx): item = self.__controller.carousel.items[idx]['element'] cType = self.__controller.slots.currentType quests = self.__controller.dataAggregator.getIncompleteQuestItems() questData = quests[cType][item.getID()] events_dispatcher.showMission(questData.id)
def showEventsWindow(self, eID, eventType): if self.__canNavigate(): if eventType == constants.EVENT_TYPE.C11N_PROGRESSION: self.soundManager.playInstantSound(SOUNDS.SELECT) quests_events.showMission(eID, eventType) self.destroy()
def showEventsWindow(self, eID, eventType): if self.__canNavigate(): quests_events.showMission(eID, eventType) self.destroy()
def doAction(self, boosterID, questID): quests_events.showMission(questID) g_eventBus.handleEvent(events.HideWindowEvent( events.HideWindowEvent.HIDE_BOOSTERS_WINDOW), scope=EVENT_BUS_SCOPE.LOBBY)