Lore archive · Warcraft Wiki, 2023 dump
API GameTooltip AddDoubleLine
Last wiki revision 2021-04-30
Add a line to a GameTooltip consisting of a left-aligned part and a right-aligned part. GameTooltip:AddDoubleLine(leftText, rightText [, leftR, leftG, leftB [, rightR, rightG, rightB]])
- leftText: - Text to be displayed on the left.
- rightText: - Text to be displayed on the right.
- leftR : - Red color component for the left text, between 0 and 1.
- leftG : - Green color component for the left text, between 0 and 1.
- leftB : - Blue color component for the left text, between 0 and 1.
- rightR : - Red color component for the right text, between 0 and 1.
- rightG : - Green color component for the right text, between 0 and 1.
- rightB : - Blue color component for the right text, between 0 and 1.
The following snippet would display a tooltip to the right of the cursor, with the word "Left" in red on the left side and the word "Right" in blue on the right side:
- The default color for the text is NORMAL_FONT_COLOR (1.0, 0.82, 0.0).
- To use the default color for the left text and a custom color for the right text, use nil as the value for the left text's color components.
Source
https://warcraft.wiki.gg/wiki/API_GameTooltip_AddDoubleLine · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.