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:

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)