From c5f3de907126e913f62bb71725e65a672f30996b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ko=C5=BEusznik?= <jan@kozusznik.cz> Date: Wed, 13 Oct 2021 10:29:40 +0200 Subject: [PATCH] modify texts --- src/main/resources/lab/GameWindow.fxml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/resources/lab/GameWindow.fxml b/src/main/resources/lab/GameWindow.fxml index d95ba5a..f8efb29 100644 --- a/src/main/resources/lab/GameWindow.fxml +++ b/src/main/resources/lab/GameWindow.fxml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> +<?import javafx.geometry.Insets?> <?import javafx.scene.canvas.Canvas?> <?import javafx.scene.control.Button?> <?import javafx.scene.control.Slider?> @@ -11,11 +12,14 @@ <Canvas fx:id="canvas" height="600.0" width="800.0" BorderPane.alignment="CENTER" /> </center> <bottom> - <HBox BorderPane.alignment="CENTER"> + <HBox alignment="CENTER" BorderPane.alignment="CENTER"> <children> - <Slider HBox.hgrow="ALWAYS" /> - <Button mnemonicParsing="false" onAction="#onFire" prefHeight="25.0" text="Fire" HBox.hgrow="ALWAYS" /> - <Slider fx:id="forceSlider" max="5.0" min="1.0" HBox.hgrow="ALWAYS" /> + <Slider showTickLabels="true" showTickMarks="true" HBox.hgrow="ALWAYS" /> + <Button mnemonicParsing="false" onAction="#onFire" text="Fire" HBox.hgrow="ALWAYS"> + <HBox.margin> + <Insets left="10.0" right="10.0" /> + </HBox.margin></Button> + <Slider fx:id="forceSlider" blockIncrement="1.0" majorTickUnit="1.0" max="10.0" minorTickCount="1" showTickLabels="true" showTickMarks="true" value="1.0" HBox.hgrow="ALWAYS" /> </children> </HBox> </bottom> -- GitLab