Skip to content
Snippets Groups Projects
OptionsScreen.fxml 2.71 KiB
Newer Older
Dina's avatar
Dina committed
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>

Dina's avatar
Dina committed
<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">
Dina's avatar
Dina committed
  <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>
Dina's avatar
Dina committed
      <Button mnemonicParsing="false" onAction="#openSnakeGame" prefHeight="50.0" prefWidth="80.0" text="Play" GridPane.rowIndex="2">
Dina's avatar
Dina committed
         <GridPane.margin>
            <Insets left="265.0" />
         </GridPane.margin>
         <font>
            <Font size="22.0" />
         </font>
      </Button>
   </children>
</GridPane>