WoW:API GameTooltip AddLine

Revision as of 22:34, 16 January 2005 by WoWWiki>Goatus (Tooltip:AddLine())
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Title -Documentation by Goatus-


tooltip:AddLine(tooltipText, textColor.r, textColor.g, textColor.b {,x});


Adds Line with text to tooltip.


Arguments


(tooltipText, textColor.r, textColor.g, textColor.b {, x})


tooltipText
String - string which will appear in new tooltip line
textColor.r
range 0 to 1 - red color value for text string
textColor.g
range 0 to 1 - green color value for text string
textColor.b
range 0 to 1 - blue color value for text string
{x}
1 or 0 - unknow (no idea what it's for)

Returns


nothing

Example


MyTooltip:SetOwner(TargetFrame, "ANCHOR_RIGHT");
MyTooltip:AddLine("New tooltip line", 1,1,1);
MyTooltip:Show():

Template:WoW API