diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2025-08-19 12:38:02 -0700 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2025-08-19 12:38:02 -0700 |
| commit | 255fbf19cc9499ef384d41f68515da5e49e8a3ce (patch) | |
| tree | 13c838229198383b24644f613787e34842ea7ab2 /scripts/ServerBrowser.gd | |
| parent | f087c6a98b1da55525a6e3c1d7c82477f82eb5cd (diff) | |
added menus, reworking GC client architecture
Diffstat (limited to 'scripts/ServerBrowser.gd')
| -rw-r--r-- | scripts/ServerBrowser.gd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/ServerBrowser.gd b/scripts/ServerBrowser.gd index 3c59b9b..410eec2 100644 --- a/scripts/ServerBrowser.gd +++ b/scripts/ServerBrowser.gd @@ -16,6 +16,8 @@ var queued_messages = [] func _ready(): refresh_game_list() $RefreshButton.connect("pressed", self, "refresh_game_list") + $HostPopup/Control/PrivateToggle.connect("toggled", self, "toggle_password_vis") + $Username.connect("text_changed", $HostPopup/Control/GameName, "set_text") func join_game(): $HostPopup.visible = false @@ -50,6 +52,9 @@ func add_games_to_list(games): game_list.add_item( game_str, null, true if game["state"] == "LOBBY" else false ) game_ids.append( game["id"] ) +func toggle_password_vis(pressed): + $HostPopup/Control/Password.visible = pressed + func _process(_delta): $GameCoordinatorStatus.text = "Game Coordinator Connection: " + str(ws_client.state) |
