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/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.OptionsScreen.OptionsScreenController">
<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>
</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 fx:id="easyButton" mnemonicParsing="false" text="Easy" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="235.0" />
</GridPane.margin>
<toggleGroup>
<ToggleGroup fx:id="difficulty" />
</toggleGroup>
<RadioButton fx:id="normalButton" mnemonicParsing="false" text="Normal" toggleGroup="$difficulty" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="320.0" />
</GridPane.margin>
</RadioButton>
<RadioButton fx:id="hardButton" mnemonicParsing="false" text="Hard" toggleGroup="$difficulty" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="50.0" left="410.0" />
</GridPane.margin>
</RadioButton>
<RadioButton fx:id="normalBackground" mnemonicParsing="false" text="Normal" GridPane.rowIndex="1">
<GridPane.margin>
<Insets left="235.0" top="70.0" />
</GridPane.margin>
<toggleGroup>
<ToggleGroup fx:id="background" />
</toggleGroup>
<RadioButton fx:id="bezwingerBackground" mnemonicParsing="false" selected="true" text="Bezwinger-Edition" toggleGroup="$background" 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">