PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Lua Chat System — Client API — ChatMessageLogDisplay

Lua Chat System — Client API — ChatMessageLogDisplay

Oct 31 2018, 12:10 AM PST 5 min

< Return to Lua Chat System

The ChatMessageLogDisplay manages the rendering of ChatMessages in a ChatChannelUI.

Methods

AddMessage

  • Parameters: ChatMessage message
  • Description: Adds a message to the message log display
  • Returns: void

RemoveLastMessage

  • Parameters: None
  • Description: Removes the oldest ChatMessage in the message log display.
  • Returns: void

ReorderAllMessages

  • Parameters: None
  • Description: Re-sorts all of the message displays in ascending order, relative to the size of the message display. This should be called if the message log display is resized.
  • Returns: void

Clear

  • Parameters: None
  • Description: Removes all ChatMessages from the message log display.
  • Returns: void

FadeOutText

  • Parameters: float duration
  • Description: Fades out the text over the given duration in seconds. Note: later calls to control fading in/out will override earlier calls.
  • Returns: void

FadeInText

  • Parameters: float duration
  • Description: Fades in the text over the given duration in seconds. Note: later calls to control fading in/out will override earlier calls.
  • Returns: void