summaryrefslogtreecommitdiff
path: root/Network/Lobby.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Network/Lobby.gd')
-rw-r--r--Network/Lobby.gd9
1 files changed, 5 insertions, 4 deletions
diff --git a/Network/Lobby.gd b/Network/Lobby.gd
index 80b663b..87a3894 100644
--- a/Network/Lobby.gd
+++ b/Network/Lobby.gd
@@ -25,7 +25,7 @@ func _ready():
elif OS.has_environment("USER"):
ConnectNode.get_node("Name").text = OS.get_environment("USER")
else:
- var desktop_path = OS.get_system_dir(0).replace("\\", "/").split("/")
+ var desktop_path = OS.get_system_dir(OS.SYSTEM_DIR_DESKTOP).replace("\\", "/").split("/")
ConnectNode.get_node("Name").text = desktop_path[desktop_path.size() - 2]
# show lobby if we're already connected somewhere
@@ -35,9 +35,10 @@ func _ready():
self.refresh_lobby()
-func disable_connect_buttons(is_disabled = true):
- ConnectNode.get_node("Host").disabled = is_disabled
- ConnectNode.get_node("Join").disabled = is_disabled
+func disable_connect_buttons(_is_disabled = true):
+ pass
+ #ConnectNode.get_node("Host").disabled = is_disabled
+ #ConnectNode.get_node("Join").disabled = is_disabled
func refresh_lobby():