Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.OptionsScreen.OptionsScreenController">
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="Options" textAlignment="CENTER">
<GridPane.margin>
<Insets left="237.0" />
</GridPane.margin>
<font>
<Font size="35.0" />
</font></Label>
<Label text="Difficulty" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="100.0" />
</GridPane.margin>
</Label>
<Label text="Background" GridPane.rowIndex="1">
<GridPane.margin>
<Insets left="100.0" top="70.0" />
</GridPane.margin>
</Label>
<RadioButton mnemonicParsing="false" text="Easy" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="235.0" />
</GridPane.margin>
</RadioButton>
<RadioButton mnemonicParsing="false" text="Normal" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="320.0" />
</GridPane.margin>
</RadioButton>
<RadioButton mnemonicParsing="false" text="Hard" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="410.0" />
</GridPane.margin>
</RadioButton>
<RadioButton mnemonicParsing="false" text="Normal" GridPane.rowIndex="1">
<GridPane.margin>
<Insets left="235.0" top="70.0" />
</GridPane.margin>
</RadioButton>
<RadioButton mnemonicParsing="false" text="Bezwinger-Edition" GridPane.rowIndex="1">
<GridPane.margin>
<Insets left="320.0" top="70.0" />
</GridPane.margin>
</RadioButton>
<Button mnemonicParsing="false" onAction="#openSnakeGame" prefHeight="50.0" prefWidth="80.0" text="Play" GridPane.rowIndex="2">