Added functionality to automatically select a server

- Added functionality on the DiscoveryServer to return a random server to the player
- Added elements to the UI to support auto-selecting a server
- Added client side code to request a random server

Tags: #story[1281]
This commit is contained in:
Michael Rausch
2017-09-26 01:14:02 +13:00
parent d0844e861d
commit 9cfb3b9e5d
8 changed files with 119 additions and 15 deletions
+4 -3
View File
@@ -38,15 +38,16 @@
-fx-font-size: 23px;
}
#connectButton, #roomConnectButton, #directConnectButton {
#connectButton, #roomConnectButton, #directConnectButton, #autoSelectGame {
-fx-background-color: -fx-pp-light-text-color; /* inverted */
-fx-text-fill: -fx-pp-theme-color; /* inverted */
-fx-font-size: 20px;
-fx-pref-height: 45px;
-fx-effect: -fx-pp-dropshadow-dark;
}
#connectButton:hover, #roomConnectButton:hover, #directConnectButton:hover {
-fx-font-size: 23px;
#connectButton:hover, #roomConnectButton:hover, #directConnectButton:hover, #autoSelectGame:hover {
-fx-font-size: 21px;
}
#connectLabel, #connectLabel1, #serverPortNumber, #roomNumber, #serverHostName {