SCLOrkChatMessageView:
Filter:
SCLOrkTools/Classes (extension) | Quarks > SCLOrkTools

SCLOrkChatMessageView
ExtensionExtension

Internal class for SCLOrkChat UI, represents a single SCLOrkChatMessage.

Description

An internal class intended for use by the SCLOrkChat user interface code. It contains logic about how to display a SCLOrkChatMessage, and includes some simple interactivity, specifically to copy code from a code message or silence the blink of a shout message.

Class Methods

.messageViewPadding

A constant used by the view to calculate distance between UI elements.

.new

Create, initialize, and return a new SCLOrkChatMessageView object.

Arguments:

parent

The containing parent view, this is passed on to the superclass View constructor.

containerViewWidth

How wide this view should be within the larger container.

fontSize

The size of the font to use when drawing text in this view.

chatMessage

The SCLOrkChatMessage object the view is to represent.

messageIndex

An integer describing the position of this view in the larger view container, used to calculate background color for ease of reading.

sclorkChat

The containing SCLOrkChat object, used in case chat has to send back any messages.

Returns:

A new SCLOrkChatMessageView object.

Instance Methods

.remove

Stops any tasks associated with this particular view (namely shout flashing), then calls View: remove.