- Хроники
- Prelude
- Helios
- Fafurion
 
- Исходники
- Присутствуют
- Сборка
- Tooltip code
Подскажите, пожалуйста, как можно добавить в тултип дополнительную строку с иконкой, чтобы заголовок «Augmentation Effects» отображался вместе с иконкой слева на одной линии, как показано на скриншоте.
Буду очень признателен за помощь.
	
	
	
		
				
			Буду очень признателен за помощь.
		Код:
	
	function AddTooltipRefinery(ItemInfo item)
{
    local string strDesc1, strDesc2, strDesc3;
    local int ColorR, ColorG, ColorB, Quality;
    if (item.RefineryOp1 != 0 || item.RefineryOp2 != 0)
    {
        AddTooltipItemBlank(2);
        // [Refinery]
        // AddSectionTitleBoader();
        AddTooltipItemOption(1490, "", true, false, false);
        SetTooltipItemColor(255, 255, 255, 0);
        AddTooltipItemBlank(2);
        // Choose initial color by option quality depending on slot type
        if (item.SlotBitType == 8192)
        {
            Quality = class'UIDATA_REFINERYOPTION'.static.GetQuality(item.RefineryOp1);
            GetRefineryColor(Quality, ColorR, ColorG, ColorB);
        }
        else
        {
            Quality = class'UIDATA_REFINERYOPTION'.static.GetQuality(item.RefineryOp2);
            GetRefineryColor(Quality, ColorR, ColorG, ColorB);
        }
        if (item.RefineryOp1 != 0)
        {
            strDesc1 = "";
            strDesc2 = "";
            strDesc3 = "";
            if (class'UIDATA_REFINERYOPTION'.static.GetOptionDescription(item.RefineryOp1, strDesc1, strDesc2, strDesc3))
            {
                if (Len(strDesc1) > 0)
                {
                    AddTooltipColorText(strDesc1, getColor(ColorR, ColorG, ColorB, 255), true, false, false);
                }
                if (Len(strDesc2) > 0)
                {
                    AddTooltipColorText(strDesc2, getColor(ColorR, ColorG, ColorB, 255), true, false, false);
                }
                if (Len(strDesc3) > 0)
                {
                    AddTooltipColorText(strDesc3, getColor(ColorR, ColorG, ColorB, 255), true, false, false);
                }
            }
        }
        // If needed, switch color to match the second option
        if (item.SlotBitType == 8192)
        {
            Quality = class'UIDATA_REFINERYOPTION'.static.GetQuality(item.RefineryOp2);
            GetRefineryColor(Quality, ColorR, ColorG, ColorB);
        }
        if (item.RefineryOp2 != 0)
        {
            strDesc1 = "";
            strDesc2 = "";
            strDesc3 = "";
            if (class'UIDATA_REFINERYOPTION'.static.GetOptionDescription(item.RefineryOp2, strDesc1, strDesc2, strDesc3))
            {
                if (Len(strDesc1) > 0)
                {
                    AddTooltipColorText(strDesc1, getColor(ColorR, ColorG, ColorB, 255), true, false, false);
                }
                if (Len(strDesc2) > 0)
                {
                    AddTooltipColorText(strDesc2, getColor(ColorR, ColorG, ColorB, 255), true, false, false);
                }
                if (Len(strDesc3) > 0)
                {
                    AddTooltipColorText(strDesc3, getColor(ColorR, ColorG, ColorB, 255), true, false, false);
                }
            }
        }
        // Extra line for non-Classic servers (and non-8192 slot)
        if (!getInstanceUIData().getIsClassicServer() && item.SlotBitType != 8192)
        {
            AddTooltipItemOption(1491, "", true, false, false);
            SetTooltipItemColor(ColorR, ColorG, ColorB, 0);
        }
        AddTooltipItemBlank(2);
    }
} 
	 
 
		 
			 
 
		 
 
		 
 
 
 ptionStep > 0)
ptionStep > 0)