diff options
Diffstat (limited to 'scripts/ServerBrowser.gd')
| -rw-r--r-- | scripts/ServerBrowser.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/ServerBrowser.gd b/scripts/ServerBrowser.gd index 410eec2..41f478a 100644 --- a/scripts/ServerBrowser.gd +++ b/scripts/ServerBrowser.gd @@ -18,6 +18,11 @@ func _ready(): $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") + $HostPopup/Control/PlayerCount.connect("item_selected", self, "test_select_signal") + + +func test_select_signal(index): + print("selected %d" % index) func join_game(): $HostPopup.visible = false @@ -53,6 +58,7 @@ func add_games_to_list(games): game_ids.append( game["id"] ) func toggle_password_vis(pressed): + $HostPopup/Control/PlayerCount.select(3) $HostPopup/Control/Password.visible = pressed |
