extends PanelContainer onready var chat_log = $VBox/ChatLog onready var chat_input = $VBox/ChatInput onready var join_button = $VBox/HBox/JoinButton onready var username = $VBox/HBox/Name func display_message(packet): # shout, alert, server_message, user_joined, user_left pass func join_chat(): pass func _input(event): if event is InputEventKey: if event.pressed and event.scancode == KEY_ENTER: get_parent().send_message(chat_input.text) chat_input.text = "" func _ready(): join_button.connect("button_up", self, "join_chat")