From bab7749138f9880e7ab31bb7994bcb5c2979ec0f Mon Sep 17 00:00:00 2001 From: David Wu Date: Thu, 28 Sep 2017 13:48:25 +1300 Subject: [PATCH] Merged master into branch. #story[1301] --- .../Controllers/TitleController.java | 2 - .../src/main/resources/css/dayMode.css | 18 ++ .../src/main/resources/css/nightMode.css | 233 ++++++++++++++++++ .../visualiser/scenes/gameLobby.fxml | 11 +- .../resources/visualiser/scenes/hostGame.fxml | 18 +- 5 files changed, 271 insertions(+), 11 deletions(-) diff --git a/racevisionGame/src/main/java/visualiser/Controllers/TitleController.java b/racevisionGame/src/main/java/visualiser/Controllers/TitleController.java index c46bc6e9..ec27d068 100644 --- a/racevisionGame/src/main/java/visualiser/Controllers/TitleController.java +++ b/racevisionGame/src/main/java/visualiser/Controllers/TitleController.java @@ -137,7 +137,6 @@ public class TitleController extends Controller { */ public void setDayMode(){ dayModeRD.getScene().getStylesheets().clear(); - menuPane.getStylesheets().clear(); dayModeRD.getScene().getStylesheets().add("/css/dayMode.css"); nightModeRD.setSelected(false); App.dayMode = true; @@ -148,7 +147,6 @@ public class TitleController extends Controller { */ public void setNightMode(){ nightModeRD.getScene().getStylesheets().clear(); - menuPane.getStylesheets().clear(); nightModeRD.getScene().getStylesheets().add("/css/nightMode.css"); dayModeRD.setSelected(false); App.dayMode = false; diff --git a/racevisionGame/src/main/resources/css/dayMode.css b/racevisionGame/src/main/resources/css/dayMode.css index 52de10f6..d095537e 100644 --- a/racevisionGame/src/main/resources/css/dayMode.css +++ b/racevisionGame/src/main/resources/css/dayMode.css @@ -316,4 +316,22 @@ -fx-background-position: center center; -fx-focus-color: transparent; -fx-background-color: transparent; +} + +#startButton { + -fx-background-image: url("/visualiser/images/startBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#startButton:pressed { + -fx-background-image: url("/visualiser/images/startBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; } \ No newline at end of file diff --git a/racevisionGame/src/main/resources/css/nightMode.css b/racevisionGame/src/main/resources/css/nightMode.css index 514893aa..098c2931 100644 --- a/racevisionGame/src/main/resources/css/nightMode.css +++ b/racevisionGame/src/main/resources/css/nightMode.css @@ -102,3 +102,236 @@ -fx-border-color: #012256; -fx-border-width: 3; } + +/* Title menu buttons */ +#hostAGameBtn { + -fx-background-image: url("/visualiser/images/hostAGameBtn.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#hostAGameBtn:pressed { + -fx-background-image: url("/visualiser/images/hostAGameBtnPressed.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#btnJoin { + -fx-background-image: url("/visualiser/images/JoinAGameBtn.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#btnJoin:pressed { + -fx-background-image: url("/visualiser/images/JoinAGameBtnPressed.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#tutorialButton { + -fx-background-image: url("/visualiser/images/howToPlayBtn.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#tutorialButton:pressed { + -fx-background-image: url("/visualiser/images/howToPlayBtnPressed.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#controlsBtn { + -fx-background-image: url("/visualiser/images/controlsBtn.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#controlsBtn:pressed { + -fx-background-image: url("/visualiser/images/controlsBtnPressed.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +/* host game lobby buttons */ + +#hostGameBtn { + -fx-background-image: url("/visualiser/images/startGameBtn.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#hostGameBtn:pressed { + -fx-background-image: url("/visualiser/images/startGameBtnPressed.png"); + -fx-background-size: 150px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#mainMenuBtn { + -fx-background-image: url("/visualiser/images/mainMenuBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + + +#mainMenuBtn:pressed { + -fx-background-image: url("/visualiser/images/mainMenuBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +/* match browsing lobby buttons */ + +#addBtn { + -fx-background-image: url("/visualiser/images/addBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#addBtn:pressed { + -fx-background-image: url("/visualiser/images/addBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#refreshBtn { + -fx-background-image: url("/visualiser/images/refreshBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#refreshBtn:pressed { + -fx-background-image: url("/visualiser/images/refreshBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#refreshBtn { + -fx-background-image: url("/visualiser/images/refreshBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#joinGameBtn { + -fx-background-image: url("/visualiser/images/participateBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#joinGameBtn:pressed { + -fx-background-image: url("/visualiser/images/participateBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#spectateButton { + -fx-background-image: url("/visualiser/images/spectateBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#spectateButton:pressed { + -fx-background-image: url("/visualiser/images/spectateBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +/* in-game lobby buttons */ + +#quitBtn { + -fx-background-image: url("/visualiser/images/quitBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#quitBtn:pressed { + -fx-background-image: url("/visualiser/images/quitBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#startButton { + -fx-background-image: url("/visualiser/images/startBtn.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} + +#startButton:pressed { + -fx-background-image: url("/visualiser/images/startBtnPressed.png"); + -fx-background-size: 115px; + -fx-background-repeat: no-repeat; + -fx-background-position: center center; + -fx-focus-color: transparent; + -fx-background-color: transparent; +} diff --git a/racevisionGame/src/main/resources/visualiser/scenes/gameLobby.fxml b/racevisionGame/src/main/resources/visualiser/scenes/gameLobby.fxml index 2cb96da0..964b23c4 100644 --- a/racevisionGame/src/main/resources/visualiser/scenes/gameLobby.fxml +++ b/racevisionGame/src/main/resources/visualiser/scenes/gameLobby.fxml @@ -1,5 +1,10 @@ + + + + + @@ -9,11 +14,11 @@ - + -