From 485cd463b22e12394cd232812e2c3789ef37ab1c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 9 Jan 2021 23:30:27 +0100 Subject: Adds a bunch of characters and fixes things --- Network/Lobby.gd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Network/Lobby.gd') diff --git a/Network/Lobby.gd b/Network/Lobby.gd index d962081..b30bc1f 100644 --- a/Network/Lobby.gd +++ b/Network/Lobby.gd @@ -60,6 +60,7 @@ func _on_Host_pressed(): $Players.show() $Connect/Error.text = "" + $Players/IP.text = IP.get_local_addresses()[6] var player_name = $Connect/Name.text Network.host_game(player_name) self.refresh_lobby() @@ -74,9 +75,16 @@ func _on_Join_pressed(): $Connect/Error.text = "" self.disable_connect_buttons(false) + $Players/IP.text = IP.get_local_addresses()[6] var player_name = $Connect/Name.text Network.join_game(ip, player_name) func _on_Start_pressed(): - Network.start_game() + Global.start_game() + + +func _on_Back_pressed(): + $Connect.show() + $Players.hide() + Network.leave_game() -- cgit v1.2.3