Beispiel #1
0
 def createToolTip(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipId = event.getArgument('tooltipId')
         if tooltipId is None:
             return
         tooltipData = self.__tooltipItems.get(tooltipId)
         if tooltipData is None:
             return
         isGFTooltip = isUndefinedBonusTooltipData(tooltipData)
         if isGFTooltip:
             window = createUndefinedBonusTooltipWindow(
                 tooltipData, self.getParentWindow())
         else:
             window = backport.BackportTooltipWindow(
                 tooltipData, self.getParentWindow())
         self.__tooltipWindow = window
         if window is None:
             return
         window.load()
         if isGFTooltip:
             window.move(event.mouse.positionX, event.mouse.positionY)
         return window
     else:
         return super(BattlePassBuyView, self).createToolTip(event)
Beispiel #2
0
 def createToolTip(self, event):
     tooltipId = event.getArgument('tooltipId', '')
     if not tooltipId:
         return super(MapsTrainingResult, self).createToolTip(event)
     window = backport.BackportTooltipWindow(
         self.__tooltipData.get(tooltipId), self.getParentWindow())
     window.load()
     return window
Beispiel #3
0
 def wrapper(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent():
         tooltipData = _getTooltipDataByEvent(event, getattr(self, tooltipItemsName, {}))
         if tooltipData is None:
             return
         window = backport.BackportTooltipWindow(tooltipData, self.getParentWindow())
         window.load()
         return window
     else:
         return func(self, event)
Beispiel #4
0
 def createToolTip(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipData = self.__getTooltipData(event)
         if tooltipData is None:
             return
         window = backport.BackportTooltipWindow(tooltipData,
                                                 self.getParentWindow())
         window.load()
         return window
     else:
         return super(PremDashboardHeader, self).createToolTip(event)
 def createToolTip(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipData = self.__tooltips[int(event.getArgument('tooltipId'))]
         window = backport.BackportTooltipWindow(tooltipData,
                                                 self.getParentWindow())
         if window is None:
             return
         window.load()
         return window
     else:
         return super(ResourcesLoadingView, self).createToolTip(event)
Beispiel #6
0
def getMapboxRewardTooltip(event, tooltipData, parentWindow):
    if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
    ):
        tooltipId = event.getArgument('tooltipId')
        if tooltipId is None:
            return
        tooltipData = tooltipData[int(tooltipId)]
        window = backport.BackportTooltipWindow(tooltipData, parentWindow)
        window.load()
        return window
    else:
        return
Beispiel #7
0
 def wrapper(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipData = self.getTooltipData(event)
         if tooltipData is None:
             return
         window = backport.BackportTooltipWindow(
             tooltipData, self.getParentWindow())
         if window is None:
             return
         window.load()
         return window
     else:
         return func(self, event)
Beispiel #8
0
 def createToolTip(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipData = self.getTooltipData(event)
         if tooltipData is None:
             return
         window = backport.BackportTooltipWindow(tooltipData,
                                                 self.getParentWindow())
         if window is None:
             return
         window.load()
         return window
     else:
         return super(SelectableRewardBase, self).createToolTip(event)
Beispiel #9
0
 def createToolTip(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipId = event.getArgument('tooltipId')
         if tooltipId is None:
             return
         tooltipData = self.__tooltipItems.get(tooltipId)
         if tooltipData is None:
             return
         window = backport.BackportTooltipWindow(tooltipData,
                                                 self.getParentWindow())
         window.load()
         return window
     else:
         return super(DedicationRewardView, self).createToolTip(event)
Beispiel #10
0
 def createToolTip(self, event):
     if event.contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         toolTipData = None
         tooltipId = event.getArgument('tooltipId')
         idx = event.getArgument('idx')
         if idx is not None:
             toolTipData = self.__levels[int(idx)].createToolTipData(
                 tooltipId)
         if toolTipData is None:
             return
         window = backport.BackportTooltipWindow(
             toolTipData, self.parentView.getParentWindow())
         window.load()
         return window
     else:
         return super(NyLevelsRewardsPresenter, self).createToolTip(event)