Beispiel #1
0
 def onAwardClick(self, blockID):
     if blockID == _AWARD_BLOCK_IDS.WEB_LEAGUE:
         self.rankedController.openWebLeaguePage(ctx={'returnAlias': RANKEDBATTLES_ALIASES.RANKED_BATTLES_VIEW_ALIAS})
     elif blockID == _AWARD_BLOCK_IDS.BOOBY_QUEST:
         consolationQuest = self.rankedController.getConsolationQuest()
         if consolationQuest is not None:
             showMissionDetails(missionID=consolationQuest.getID(), groupID=consolationQuest.getGroupID())
     elif blockID == _AWARD_BLOCK_IDS.SEASON_AWARDS:
         g_eventBus.handleEvent(events.LoadViewEvent(RANKEDBATTLES_ALIASES.RANKED_BATTLES_CYCLES_VIEW_ALIAS), scope=EVENT_BUS_SCOPE.LOBBY)
     return
Beispiel #2
0
 def onQuestClick(self, questID):
     quest = self.eventsCache.getQuests()[questID]
     showMissionDetails(quest.getID(), quest.getGroupID())
     self.destroy()