def onQuestBtnClick(self, questType, questID): if questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_COMMON: missions_page.setHideDoneFilter() if self._festivityController.isEnabled(): showMissionsCategories(groupID=NEW_YEAR_QUEST_GROUP_ID) else: showMissionsCategories(missionID=questID) elif questType == HANGAR_HEADER_QUESTS.QUEST_GROUP_RANKED_DAILY: showMissionsCategories(groupID=RANKED_DAILY_GROUP_ID) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_BATTLE_PASS: showMissionsBattlePassCommonProgression() elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_MAPBOX: showMissionsMapboxProgression() elif questType in QUEST_TYPE_BY_PM_BRANCH.itervalues(): if questID: showPersonalMission(missionID=int(questID)) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_PERSONAL_REGULAR: self.__showAvailablePMOperation(PM_BRANCH.REGULAR) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_PERSONAL_PM2: self.__showAvailablePMOperation(PM_BRANCH.PERSONAL_MISSION_2) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_EVENT: showMissionsElen(questID) elif HANGAR_HEADER_QUESTS.QUEST_TYPE_MARATHON in questType: marathonPrefix = questID or self._marathonsCtrl.getPrimaryMarathon( ) showMissionsMarathon(marathonPrefix) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_BATTLE_ROYALE: showMissionsCategories(groupID=BATTLE_ROYALE_GROUPS_ID)
def _onClick(self): if getNotChosen3DStylesCount( battlePass=self._battlePassController ) > 0 and self.__settingsCore.serverSettings.getBPStorage().get( BattlePassStorageKeys.INTRO_SHOWN ) and not self._battlePassController.isOffSeasonEnable(): showBattlePass3dStyleChoiceWindow() else: showMissionsBattlePassCommonProgression()
def onQuestBtnClick(self, questType, questID): if questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_COMMON: missions_page.setHideDoneFilter() showMissionsCategories(missionID=questID) elif questType == HANGAR_HEADER_QUESTS.QUEST_GROUP_RANKED_DAILY: showMissionsCategories(groupID=RANKED_DAILY_GROUP_ID) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_BATTLE_PASS: showMissionsBattlePassCommonProgression() elif questType in QUEST_TYPE_BY_PM_BRANCH.itervalues(): if questID: showPersonalMission(missionID=int(questID)) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_PERSONAL_REGULAR: self.__showAvailablePMOperation(PM_BRANCH.REGULAR) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_PERSONAL_PM2: self.__showAvailablePMOperation(PM_BRANCH.PERSONAL_MISSION_2) elif questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_EVENT: showMissionsElen(questID) elif HANGAR_HEADER_QUESTS.QUEST_TYPE_MARATHON in questType: marathonPrefix = questID or DEFAULT_MARATHON_PREFIX showMissionsMarathon(marathonPrefix)
def _onEntered(self): lockNotificationManager(False, notificationManager=self.__notificationManager) self.__battlePass.onRewardSelectChange() if g_BPBuyViewStates.chapter != WINDOW_IS_NOT_OPENED: showMissionsBattlePassCommonProgression(BattlePassProgressionSubTabs.BUY_TAB)
def doAction(self, model, entityID, action): showMissionsBattlePassCommonProgression()
def handleShowProgressionsView(self, _): showMissionsBattlePassCommonProgression()
def openBattlePassMainWithBuy(self, _): server_events.showMissionsBattlePassCommonProgression( subTab=BattlePassProgressionSubTabs.BUY_TAB_FOR_SHOP)
def openBattlePassMainProgression(self, _): server_events.showMissionsBattlePassCommonProgression()
def onCloseBtnClick(self): showMissionsBattlePassCommonProgression() self.destroy()
def openBattlePassMainWithBuyLevels(self, _): server_events.showMissionsBattlePassCommonProgression( subTab=BattlePassProgressionSubTabs.BUY_LEVELS_TAB_FROM_SHOP)
def __onBattlePassClick(self): events_dispatcher.showMissionsBattlePassCommonProgression()
def _onBuyClick(self): showMissionsBattlePassCommonProgression( BattlePassProgressionSubTabs.BUY_TAB) self.destroyWindow()
def __onClick(self): showMissionsBattlePassCommonProgression()