WoW:API GameTooltip AddLine: Difference between revisions
Jump to navigation
Jump to search
Title -Documentation by Goatus-
Title -Edited by ThePooBurner-
No edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
GameTooltip:AddLine(tooltipText [, textColor.r, textColor.g, textColor. | GameTooltip:AddLine(tooltipText [, textColor.r, textColor.g, textColor.bp, wrapText]]); | ||
<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section --> | <!-- Describe the purpose of the function, though exhausting detail can be saved for a later section --> | ||
Line 23: | Line 23: | ||
:;textColor.g : range 0 to 1 - green 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 | :;textColor.b : range 0 to 1 - blue color value for text string | ||
:;wrapText : nil or 1 - Set to 1 to wrap text. | |||
---- | ---- |
Revision as of 19:46, 5 September 2005
GameTooltip:AddLine(tooltipText [, textColor.r, textColor.g, textColor.bp, 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():
4-1-05: Removed the "wrapText" argument as it isn't real. There is no argument after the color with this command. I tested this extensivly when creating custum tooltips for my mod's options pane.