Пример #1
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)
Пример #2
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)