Пример #1
0
 def __init__(self, timeLeft, rerollInterval, withCountdown=False):
     self._timeLeft = timeLeft
     self._rerollInterval = rerollInterval
     settings = ViewSettings(
         R.views.lobby.missions.RerollTooltipWithCountdown()
         if withCountdown else R.views.lobby.missions.RerollTooltip(),
         model=RerollTooltipModel())
     super(RerollTooltip, self).__init__(settings)
Пример #2
0
 def __init__(self):
     settings = ViewSettings(R.views.lobby.missions.DailyQuestsWidget(), ViewFlags.COMPONENT, DailyQuestsWidgetViewModel())
     super(DailyQuestsWidgetView, self).__init__(settings)
     self.__parentId = None
     self.__tooltipEnabled = True
     self.__layout = 0
     self.__visitedQuests = set()
     self.__markVisitedCallbackID = 0
     return
 def __init__(self, vehicleType, team, mapId, targets, vehicleName,
              isComplete, rewards):
     settings = ViewSettings(R.views.lobby.maps_training.ScenarioTooltip(),
                             model=MapsTrainingScenarioTooltipModel())
     super(ScenarioTooltip, self).__init__(settings)
     self._vehicleType = vehicleType
     self._team = team
     self._mapId = mapId
     self._targets = targets
     self._vehicleName = vehicleName
     self._isComplete = isComplete
     self._rewards = rewards
Пример #4
0
    def createToolTipContent(self, event, contentID):
        _logger.debug('DailyQuests::createToolTipContent')
        if not self.__tooltipEnabled:
            return None
        else:
            if contentID == R.views.lobby.missions.DailyQuestsTooltip():
                missionId = event.getArgument('missionId')
                quests = self.eventsCache.getDailyQuests().values()
                for quest in quests:
                    if quest.getID() == missionId:
                        questUIPacker = getEventUIDataPacker(quest)
                        model = questUIPacker.pack()
                        self.eventsCache.questsProgress.markQuestProgressAsViewed(missionId)
                        return ViewImpl(ViewSettings(R.views.lobby.missions.DailyQuestsTooltip(), model=model))

            return super(DailyQuestsWidgetView, self).createToolTipContent(event=event, contentID=contentID)
Пример #5
0
 def __init__(self):
     settings = ViewSettings(R.views.lobby.new_year.tooltips.new_year_parts_tooltip_content.NewYearPartsTooltipContent())
     settings.model = NewYearPartsTooltipContentModel()
     super(NewYearPartsTooltipContent, self).__init__(settings)