7 lines
215 B
GDScript3
Raw Permalink Normal View History

2024-02-25 22:01:17 +00:00
class_name Chat
extends VBoxContainer
signal message_submitted(message: String)
2024-02-28 20:44:24 +00:00
func add_message(player: Player, message: String):
%Messages.append_text("[color=#e0e0e0]%s:[/color] %s\n" % [player.name, message])