7 lines
155 B
GDScript

class_name Chat
extends VBoxContainer
signal message_submitted(message: String)
func add_message(message: String):
%Messages.append_text(message + "\n")