diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2023-12-28 08:48:41 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2023-12-28 08:48:41 +0100 |
commit | 2a9cbb1fa0268c3be828c0d872180282704abb61 (patch) | |
tree | 4d2a9f805af004a7b960e7918b5d34ddfed7f2c8 /Network/Lobby.gd | |
parent | 2a5d745c68f11131fb1b27ec42a30ecd6dc5da1d (diff) |
show other player puppetsv2.2.0
Diffstat (limited to 'Network/Lobby.gd')
-rw-r--r-- | Network/Lobby.gd | 9 |
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(): |