Sets the tooltip's text. Any other content currently displayed in the tooltip will be removed or hidden, and the tooltip's size will be adjusted to fit the new text.

Signature:

GameTooltip:SetText("text" [, r [, g [, b [, a]]]])

Arguments:

  • text - Text to be displayed in the tooltip (string)
  • r - Red component of the text color (0.0 - 1.0) (number)
  • g - Green component of the text color (0.0 - 1.0) (number)
  • b - Blue component of the text color (0.0 - 1.0) (number)
  • a - Alpha (opacity) for the text (0.0 = fully transparent, 1.0 = fully opaque) (number)