Wikia

WoWWiki

API GameTooltip AddDoubleLine

Talk0
100,576pages on
this wiki
Revision as of 23:51, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API


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():
Advertisement | Your ad here

Around Wikia's network

Random Wiki