def createToolTipContent(self, event, contentID):
     if contentID == R.views.dialogs.common.DialogTemplateGenericTooltip():
         if self.__price.isActionPrice():
             specialAlias = (None, None,
                             _convertMoneyToTuple(self.__price.price),
                             _convertMoneyToTuple(self.__price.defPrice),
                             True, False, None, True)
             return createBackportTooltipContent(
                 specialAlias=TOOLTIPS_CONSTANTS.ACTION_PRICE,
                 specialArgs=specialAlias)
         shortage = self._itemsCache.items.stats.money.getShortage(
             self.__price.price)
         if bool(shortage):
             currency = shortage.getCurrency()
             return createBackportTooltipContent(
                 TOOLTIPS_CONSTANTS.NOT_ENOUGH_MONEY,
                 (shortage.get(currency), currency))
     return super(SinglePrice, self).createToolTipContent(event, contentID)
Exemple #2
0
 def createToolTipContent(self, event, contentID):
     if contentID == R.views.dialogs.common.DialogTemplateGenericTooltip():
         if self.__price.isActionPrice():
             specialAlias = (None, None,
                             _convertMoneyToTuple(self.__price.price),
                             _convertMoneyToTuple(self.__price.defPrice),
                             True, False, None, True)
             return createBackportTooltipContent(
                 specialAlias=TOOLTIPS_CONSTANTS.ACTION_PRICE,
                 specialArgs=specialAlias)
     return super(SinglePrice, self).createToolTipContent(event, contentID)
Exemple #3
0
 def createToolTipContent(self, event, contentID):
     if contentID == R.views.common.tooltip_window.backport_tooltip_content.BackportTooltipContent(
     ):
         tooltipId = event.getArgument('tooltipId')
         if tooltipId == TooltipConstants.REWARD:
             rewardTooltipID = event.getArgument('rewardTooltipID')
             if rewardTooltipID:
                 itemIndex = rewardTooltipID.split(':').pop()
                 tooltipData = self._tooltipItems.get(int(itemIndex))
                 if tooltipData is not None:
                     return createBackportTooltipContent(
                         tooltipData=tooltipData)
         return super(BaseCredentialsOverlayView,
                      self).createToolTipContent(event, contentID)
     else:
         return
 def _tooltipFactory(self):
     return createBackportTooltipContent(
         TOOLTIPS_CONSTANTS.AWARD_DEMOUNT_KIT,
         (self.__demountKit.goodieID, ))
 def _tooltipFactory(self):
     currency = self.__price.getCurrency()
     return createBackportTooltipContent(
         isSpecial=True, specialAlias=getCurrencyTooltipAlias(currency))
Exemple #6
0
 def __notEnoughMoneyTooltipFactory(self):
     currency = self.shortage.getCurrency()
     return createBackportTooltipContent(TOOLTIPS_CONSTANTS.NOT_ENOUGH_MONEY, (self.shortage.get(currency), currency))
Exemple #7
0
 def __WGMAvailableTooltipFactory(currency):
     return createBackportTooltipContent(isSpecial=True, specialAlias=getCurrencyTooltipAlias(currency.value))