Skip to content

MessagesManager ​

Inherits: ChatViewer < HUDUIElement < Control

Displays the short messages that fade at the top of the screen: a viewer of every channel that is marked "also show as a fading message" in the Chat settings (System, Highlight, Warning, Level up, Quest ...). The colour of a message is the colour of its channel.

Variables ​

VBoxContainerv_box_container

Methods ​

boolaccepts( channel_id: String )
voidprint_message( message: String, type: MessageType )

Enumerations ​

enum MessageType ​

Message type: the three channels the older calls use (ui_manager.message / yellow_message / warning_message)

  • WARNING = 0
  • YELLOW = 1
  • PLAIN = 2

Constants ​

  • int FONT_SIZE = 18 - Font size for message labels.
  • float HOLD_DURATION = 2.0 - How long the message stays fully visible.
  • float FADE_DURATION = 1.0 - How long the fade out takes.
  • Dictionary CHANNELS = { - The channel of each message type.

Variable descriptions ​

VBoxContainer v_box_container ​

Container for message labels.

Method descriptions ​

bool accepts( channel_id: String ) ​

Every channel that is marked as a fading message

void print_message( message: String, type: MessageType ) ​

Displays a message with the specified type (the colour and the channel of the type).