WoW:API GameTooltip AddDoubleLine: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added description of AddDoubleLine tooltip function)
 
No edit summary
Line 48: Line 48:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
<!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. -->
[[Category:API Functions|Empty Template]]

Revision as of 15:45, 4 January 2006

Title -Documentation by Goatus-


tooltip:AddDoubleLine(textLeft, textRight, textLeft.r, textLeft.g,
 textLeft.b, textRight.r, textRight.g, textRight.b);


Adds Line to tooltip with textLeft on left side of line and textRight on right side


Arguments


(textLeft, textRight, textLeft.r, textLeft.g, textLeft.b, textRight.r, textRight.g, textRight.b)


textLeft
String - string which will show on left
textRight
String - string which will show on right


textLeft.r
range 0 to 1 - red color value for left string
textLeft.g
range 0 to 1 - green color value for left string
textLeft.b
range 0 to 1 - blue color value for left string


textRight.r
range 0 to 1 - red color value for right string
textRight.g
range 0 to 1 - green color value for right string
textRight.b
range 0 to 1 - blue color value for right string

Returns


nothing

Example


MyTooltip:SetOwner(TargetFrame, "ANCHOR_RIGHT");
MyTooltip:AddDoubleLine("Left", "Right", 1,0,0, 0,0,1);
MyTooltip:Show():

Template:WoW API