API GameTooltip AddLine

Appends a line of text to the tooltip widget. GameTooltip:AddLine(tooltipText [, r, g, b [, wrapText]])

Arguments

 * tooltipText : String - string which will appear in new tooltip line.
 * r : Number - red color component (between 0 and 1).
 * g : Number - green color component (between 0 and 1).
 * b : Number - blue color component (between 0 and 1).
 * wrapText : Flag - 1 to allow the new line to wrap, nil to increase tooltip width to fit the line without wrapping.

Example
GameTooltip:SetOwner(TargetFrame, "ANCHOR_RIGHT") GameTooltip:AddLine("New tooltip line", 1, 1, 1) GameTooltip:Show

Details

 * Note that the tooltip is not resized until you call GameTooltip:Show, so calling this function on an already-visible tooltip will cause the new line to appear outside of the tooltip's backdrop.'
 * If the  values are not specified, the line appears in the game's normal font color (gold).