コード例 #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)
コード例 #2
0
 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()
コード例 #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)
コード例 #4
0
 def _onEntered(self):
     lockNotificationManager(False, notificationManager=self.__notificationManager)
     self.__battlePass.onRewardSelectChange()
     if g_BPBuyViewStates.chapter != WINDOW_IS_NOT_OPENED:
         showMissionsBattlePassCommonProgression(BattlePassProgressionSubTabs.BUY_TAB)
コード例 #5
0
 def doAction(self, model, entityID, action):
     showMissionsBattlePassCommonProgression()
コード例 #6
0
 def handleShowProgressionsView(self, _):
     showMissionsBattlePassCommonProgression()
コード例 #7
0
 def openBattlePassMainWithBuy(self, _):
     server_events.showMissionsBattlePassCommonProgression(
         subTab=BattlePassProgressionSubTabs.BUY_TAB_FOR_SHOP)
コード例 #8
0
 def openBattlePassMainProgression(self, _):
     server_events.showMissionsBattlePassCommonProgression()
コード例 #9
0
 def onCloseBtnClick(self):
     showMissionsBattlePassCommonProgression()
     self.destroy()
コード例 #10
0
 def openBattlePassMainWithBuyLevels(self, _):
     server_events.showMissionsBattlePassCommonProgression(
         subTab=BattlePassProgressionSubTabs.BUY_LEVELS_TAB_FROM_SHOP)
コード例 #11
0
 def __onBattlePassClick(self):
     events_dispatcher.showMissionsBattlePassCommonProgression()
コード例 #12
0
 def _onBuyClick(self):
     showMissionsBattlePassCommonProgression(
         BattlePassProgressionSubTabs.BUY_TAB)
     self.destroyWindow()
 def __onClick(self):
     showMissionsBattlePassCommonProgression()