7 lines
157 B
GDScript

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