WoW:API GameTooltip AddLine: Difference between revisions
Jump to navigation
Jump to search
GameTooltip:AddLine -Documentation by Goatus-
m (typo in argument list) |
({{widgetmethod}}) |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<center>'''GameTooltip:AddLine''' ''-Documentation by [[user:Goatus|Goatus]]-''</center> | <center>'''GameTooltip:AddLine''' ''-Documentation by [[user:Goatus|Goatus]]-''</center> | ||
Line 39: | Line 41: | ||
MyTooltip:AddLine("New tooltip line", 1, 1, 1); | MyTooltip:AddLine("New tooltip line", 1, 1, 1); | ||
MyTooltip:Show(); | MyTooltip:Show(); | ||
Revision as of 12:06, 10 June 2006
← Widget API ← GameTooltip < AddLine
GameTooltip: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
- nil or 1 - Set to 1 to wrap text.
- Returns
- nothing
- Example
MyTooltip:SetOwner(TargetFrame, "ANCHOR_RIGHT"); MyTooltip:AddLine("New tooltip line", 1, 1, 1); MyTooltip:Show();