summaryrefslogtreecommitdiff
path: root/scripts/ServerBrowser.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ServerBrowser.gd')
-rw-r--r--scripts/ServerBrowser.gd5
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)