Exemplo n.º 1
0
    def _getToolTip(cls, bonus):
        tooltipData = []
        for item, _ in zip(bonus.getCustomizations(), bonus.getList()):
            if item is None:
                continue
            itemCustomization = bonus.getC11nItem(item)
            tooltipData.append(
                TooltipData(tooltip=None,
                            isSpecial=True,
                            specialAlias=TOOLTIPS_CONSTANTS.
                            TECH_CUSTOMIZATION_ITEM_AWARD,
                            specialArgs=CustomizationTooltipContext(
                                itemCD=itemCustomization.intCD)))

        return tooltipData
Exemplo n.º 2
0
 def _packBlocks(self, *args):
     config = CustomizationTooltipContext(*args)
     self._item = self.itemsCache.items.getItemByCD(config.itemCD)
     statsConfig = self.context.getStatsConfiguration(self._item)
     self.__ctx = self.service.getCtx()
     if config.vehicleIntCD == 0:
         self.__vehicle = None
     elif config.vehicleIntCD == -1:
         self.__vehicle = g_currentVehicle.item
     else:
         self.__vehicle = self.itemsCache.items.getItemByCD(
             config.vehicleIntCD)
     showInventoryBlock = config.showInventoryBlock
     statsConfig.buyPrice = showInventoryBlock
     statsConfig.sellPrice = showInventoryBlock
     statsConfig.inventoryCount = showInventoryBlock
     self._progressionLevel = config.level
     self._showOnlyProgressBlock = config.showOnlyProgressBlock
     return self._packItemBlocks(statsConfig)
Exemplo n.º 3
0
 def __getTooltipData(itemCD):
     return createTooltipData(
         isSpecial=True,
         specialAlias=TOOLTIPS_CONSTANTS.TECH_CUSTOMIZATION_ITEM_AWARD,
         specialArgs=CustomizationTooltipContext(itemCD=itemCD))