Injected a simple toggle into the decorator for the window for the sound.

Unsure if this is the best way to do it but not a bad thing to try for now.

tags : #story[1245] #story[1249]
This commit is contained in:
Alistair McIntyre
2017-09-12 13:53:24 +12:00
parent 6d9864e677
commit bc9f0ea924
7 changed files with 80 additions and 43 deletions
+8
View File
@@ -91,3 +91,11 @@
.scroll-bar {
-fx-background-insets: 0;
}
.slider .thumb {
-fx-background-color: -fx-pp-theme-color;
}
.slider .track {
-fx-background-color: -fx-pp-dark-text-color;
}
@@ -45,11 +45,3 @@
.maxPlayers {
-fx-font-size: 13px;
}
#maxPlayersSlider .thumb {
-fx-background-color: -fx-pp-theme-color;
}
#maxPlayersSlider .track {
-fx-background-color: -fx-pp-dark-text-color;
}
+8 -5
View File
@@ -65,11 +65,6 @@
</ScrollPane>
<GridPane>
<children>
<JFXButton id="hostButton" fx:id="serverListHostButton" buttonType="RAISED" onMouseEntered="#playButtonHoverSound" prefHeight="45.0" prefWidth="220.0" text="HOST" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.valignment="CENTER">
<GridPane.margin>
<Insets right="50.0" />
</GridPane.margin>
</JFXButton>
<Label text="Party Parrots At Sea" GridPane.valignment="CENTER">
<font>
<Font size="31.0" />
@@ -78,6 +73,14 @@
<Insets left="35.0" top="5.0" />
</padding>
</Label>
<JFXButton id="hostButton" fx:id="serverListHostButton" buttonType="RAISED"
onMouseEntered="#playButtonHoverSound" prefHeight="45.0" prefWidth="220.0"
text="HOST" GridPane.columnIndex="1" GridPane.halignment="RIGHT"
GridPane.valignment="CENTER">
<GridPane.margin>
<Insets right="50.0"/>
</GridPane.margin>
</JFXButton>
</children>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />