As title says, i want to add more colors, i edited this function with more "cases "
But in itemname-e if i set 6, don't change my color to Brown for exemple...
But in itemname-e if i set 6, don't change my color to Brown for exemple...
C++:
function AddTooltipItemName(string Name, ItemInfo Item, int AddTooltipItemName)
{
StartItem();
m_Info.eType = DIT_TEXT;
m_Info.t_bDrawOneLine = true;
switch(AddTooltipItemName)
{
case 0:
m_Info.t_color.R = 137;
m_Info.t_color.G = 137;
m_Info.t_color.B = 137;
m_Info.t_color.A = 255;
break;
case 1:
m_Info.t_color.R = 255;
m_Info.t_color.G = 255;
m_Info.t_color.B = 255;
m_Info.t_color.A = 255;
break;
case 2:
m_Info.t_color.R = 255;
m_Info.t_color.G = 251;
m_Info.t_color.B = 4;
m_Info.t_color.A = 255;
break;
case 3:
m_Info.t_color.R = 255;
m_Info.t_color.G = 0;
m_Info.t_color.B = 255;
m_Info.t_color.A = 255;
break;
case 4: // Green
m_Info.t_color.R = 33;
m_Info.t_color.G = 219;
m_Info.t_color.B = 148;
m_Info.t_color.A = 255;
break;
case 5: // Green 2
m_Info.t_color.R = 51;
m_Info.t_color.G = 204;
m_Info.t_color.B = 51;
m_Info.t_color.A = 255;
break;
case 6: // Brown
m_Info.t_color.R = 255;
m_Info.t_color.G = 128;
m_Info.t_color.B = 0;
m_Info.t_color.A = 255;
break;
}
m_Info.t_strText = Name;
EndItem();
//Additional Name
if (Len(Item.AdditionalName)>0)
{
StartItem();
m_Info.eType = DIT_TEXT;
m_Info.t_bDrawOneLine = true;
m_Info.t_color.R = 255;
m_Info.t_color.G = 217;
m_Info.t_color.B = 105;
m_Info.t_color.A = 255;
m_Info.t_strText = " " $Item.AdditionalName;
EndItem();
}
}