Class: ChatOverlay

ChatOverlay()

This class is concerned with displaying the most recent chat messages on a screen overlay for some seconds.

Constructor

new ChatOverlay()

Source:

Members

chatLinesNumber

Maximum number of lines to display simultaneously.
Source:

chatMessages

The currently displayed strings, limited by the given timeframe and limit above.
Source:

chatTimeout

Number of seconds after which chatmessages will disappear.
Source:

chatTimers

Holds the timer-IDs used for hiding the chat after chatTimeout seconds.
Source:

Methods

clearChatMessages()

Empty all messages currently displayed in the chat overlay.
Source:

onChatMessage()

Displays this message in the chat overlay and sets up the timer to remove it after a while.
Source:

removeOldChatMessage()

Called when the timer has run out for the oldest chatmessage or when the message limit is reached.
Source: