messages can now be sent by pressing enter

This commit is contained in:
2025-07-20 14:11:46 +02:00
parent 3cf036db42
commit ce820260bd
5 changed files with 39 additions and 9 deletions
-6
View File
@@ -35,12 +35,6 @@ func _on_disconnect_lobby_button_pressed() -> void:
leave_lobby_button.disabled = true
client.leave_lobby()
func _on_send_message_button_pressed() -> void:
var msg: String = chat_message_input.text.strip_edges()
if not msg.is_empty():
client.send_chat_message(msg)
chat_message_input.text = ""
func _on_web_client_tcp_connected_to_server() -> void:
_write_line("You are connected to the server")