Exemple #1
0
 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)
Exemple #2
0
 def onQuestBtnClick(self, questType, questID):
     if questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_COMMON:
         missions_page.setHideDoneFilter()
         showMissionsForCurrentVehicle()
     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 questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_MARATHON:
         marathonPrefix = questID or DEFAULT_MARATHON_PREFIX
         showMissionsMarathon(marathonPrefix)
Exemple #3
0
 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)
Exemple #4
0
 def showCommonQuests(self):
     missions_page.setHideDoneFilter()
     showMissionsForCurrentVehicle()
Exemple #5
0
 def onQuestBtnClick(self, questType, questID):
     if questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_COMMON:
         missions_page.setHideDoneFilter()
         showMissionsCategories()