RSS

Суббота, 20.04.2024, 10:17
Главная » WoW API » API Виджеты » Прокручивающееся сообщение фрейма »

ScrollingMessageFrame:UpdateColorByID(id, red, green, blue)

[ править ]
Updates the color of a set of messages already added to the frame.
[клоны]
Updates the color of a set of messages already added to the frame. Used in the default UI to allow customization of chat window message colors by type: each type of chat window message (party, raid, emote, system message, etc.) has a numeric identifier found in the global table ChatTypeInfo; this is passed as the fifth argument to :AddMessage() when messages are added to the frame, allowing them to be identified for recoloring via this method.


Signature:
Code
ScrollingMessageFrame:UpdateColorByID(id, red, green, blue)

Arguments:
  • id - Identifier for a message's type (as set when the messages were added to the frame) (number)
  • red - Red component of the new text color (0.0 - 1.0) (number)
  • green - Green component of the new text color (0.0 - 1.0) (number)
  • blue - Blue component of the new text color (0.0 - 1.0) (number)

Также смотрите: Прокручивающееся сообщение фрейма
Ссылки: http://wowprogramming.com/docs/widgets/ScrollingMessageFrame/UpdateColorByID