/tg/ Station 13 - Modules - TypesVar Details - Proc Details

Chat Message Overlay

Datum for generating a message overlay on the map

Vars

approx_linesContains the approximate amount of lines for height decay
messageThe visual element of the chat messsage
message_locThe location in which the message is appearing
owned_byThe client who heard this message
scheduled_destructionContains the scheduled destruction time

Procs

NewConstructs a chat message overlay
colorize_stringGets a color for a name, will return the same color for a given string consistently within a round.atom
end_of_lifeApplies final animations to overlay CHAT_MESSAGE_EOL_FADE deciseconds prior to message deletion
generate_imageGenerates a chat message image representation
on_parent_qdelCalls qdel on the chatmessage when its parent is deleted, used to register qdel signal

Var Details

approx_lines

Contains the approximate amount of lines for height decay

message

The visual element of the chat messsage

message_loc

The location in which the message is appearing

owned_by

The client who heard this message

scheduled_destruction

Contains the scheduled destruction time

Proc Details

New

Constructs a chat message overlay

Arguments:

colorize_string

Gets a color for a name, will return the same color for a given string consistently within a round.atom

Note that this proc aims to produce pastel-ish colors using the HSL colorspace. These seem to be favorable for displaying on the map.

Arguments:

end_of_life

Applies final animations to overlay CHAT_MESSAGE_EOL_FADE deciseconds prior to message deletion

generate_image

Generates a chat message image representation

Arguments:

on_parent_qdel

Calls qdel on the chatmessage when its parent is deleted, used to register qdel signal