Beispiel #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)
Beispiel #2
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)
Beispiel #3
0
 def openMissionCategories(self, cmd):
     server_events.showMissionsCategories(groupID=cmd.group_id)
 def openMissionCategories(self, cmd):
     server_events.showMissionsCategories()
Beispiel #5
0
 def dummyClicked(self, eventType):
     if eventType == 'OpenCategoriesEvent':
         showMissionsCategories()
     else:
         super(MissionsMarathonsView, self).dummyClicked(eventType)
Beispiel #6
0
 def onQuestBtnClick(self, questType, questID):
     if questType == HANGAR_HEADER_QUESTS.QUEST_TYPE_COMMON:
         missions_page.setHideDoneFilter()
         showMissionsCategories()