Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GameTooltip AddLine

Last wiki revision 2021-08-09

Appends a line of text to the tooltip widget. GameTooltip:AddLine(tooltipText [, r, g, b, wrapText])

  • tooltipText : - Text to appear in new line.
  • r : - Red color component (between 0 and 1).
  • g : - Green color component (between 0 and 1).
  • b : - Blue color component (between 0 and 1).
  • wrapText : - True allows the new line to wrap, false widens the tooltip as necessary to fit the line.
  • The tooltip resizes in its handler, so calling this function on an already-visible tooltip will cause the new line to appear outside of the tooltip's backdrop.
  • If the values are not specified, the line appears in the game's normal font color (gold).
  • By default, the first line is a larger font (GameTooltipHeaderText) than subsequent lines (GameTooltipText).

Source

https://warcraft.wiki.gg/wiki/API_GameTooltip_AddLine · 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.