WoW:API GameTooltip AddLine

From AddOn Studio
Revision as of 18:57, 27 January 2005 by WoWWiki>WoWWiki-Calamus (Added wrapText argument, which was previously undefined.)
Jump to navigation Jump to search
Title -Documentation by Goatus-


tooltip:AddLine(tooltipText, textColor.r, textColor.g, textColor.b [,wrapText]);


Adds Line with text to tooltip.


Arguments


(tooltipText, textColor.r, textColor.g, textColor.b , wrapText)


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
wrapText
Boolean specifying whether to wrap the text string to fit the tooltip box. 1 = Wrap, 0 = Don't wrap. Default: 0

Returns


nothing

Example


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

Template:WoW API