summaryrefslogtreecommitdiff
path: root/Network/Lobby.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Network/Lobby.gd')
-rw-r--r--Network/Lobby.gd10
1 files changed, 9 insertions, 1 deletions
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()