summaryrefslogtreecommitdiff
path: root/Network/Lobby.gd
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-01-09 23:30:27 +0100
committerDaniel Weipert <code@drogueronin.de>2021-01-09 23:30:27 +0100
commit485cd463b22e12394cd232812e2c3789ef37ab1c (patch)
tree5c455ec9c80b59a9f71ba5827b9902f2beb6df88 /Network/Lobby.gd
parent7920e8758506cd46c58ea4889c9f4fb704abfd16 (diff)
Adds a bunch of characters and fixes things
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()