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 ​
VBoxContainer | v_box_container |
Methods ​
bool | accepts( channel_id: String ) |
void | print_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 ​
intFONT_SIZE =18- Font size for message labels.floatHOLD_DURATION =2.0- How long the message stays fully visible.floatFADE_DURATION =1.0- How long the fade out takes.DictionaryCHANNELS ={- 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).