messages can now be sent by pressing enter
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user