WoW:API GameTooltip AddDoubleLine: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API GameTooltip AddDoubleLine to API GameTooltip AddDoubleLine without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<!-- 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 --> | ||
Line 45: | Line 45: | ||
MyTooltip:AddDoubleLine("Left", "Right", 1,0,0, 0,0,1); | MyTooltip:AddDoubleLine("Left", "Right", 1,0,0, 0,0,1); | ||
MyTooltip:Show(): | MyTooltip:Show(): | ||
Latest revision as of 04:45, 15 August 2023
← Widget API ← GameTooltip < AddDoubleLine
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():