class_name Chat extends VBoxContainer signal message_submitted(message: String) func add_message(player: Player, message: String): %Messages.append_text("[color=#e0e0e0]%s:[/color] %s\n" % [player.name, message])