RSS

Вторник, 05.11.2024, 13:56
Главная » WoW API » API Виджеты » Внутриигровая подсказка »

GameTooltip:AddLine("text" [, r [, g [, b [, wrap]]]])

[ править ]
Adds a line of text to the tooltip.
[клоны]
Adds a line of text to the tooltip. The tooltip is not automatically resized to fit the added line (and wrap it, if applicable); to do so, call the tooltip's :Show() method after adding lines.


Signature:
Code
GameTooltip:AddLine("text" [, r [, g [, b [, wrap]]]])

Arguments:
  • text - Text to be added as a new line 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)
  • wrap - True to cause the line to wrap if it is longer than other, non-wrapping lines in the tooltip or longer than the tooltip's forced width (boolean)

Также смотрите: Внутриигровая подсказка
Ссылки: http://wowprogramming.com/docs/widgets/GameTooltip/AddLine