-
Tran Peter authoredTran Peter authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
SkinSelection.fxml 2.44 KiB
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ToggleButton?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<VBox fx:id="parent" alignment="CENTER" prefHeight="400.0" prefWidth="600.0" spacing="20.0" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.hdm_stuttgart.battlearena.Controller.SkinSelectionController">
<children>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="40.0">
<children>
<ToggleButton contentDisplay="TOP" mnemonicParsing="false" styleClass="skinSelection" text="Elias">
<graphic>
<ImageView fx:id="selection1" fitHeight="700.0" fitWidth="700.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../textures/images/elias.png" />
</image>
</ImageView>
</graphic>
<toggleGroup>
<ToggleGroup fx:id="selectionButton" />
</toggleGroup>
</ToggleButton>
<ToggleButton contentDisplay="TOP" mnemonicParsing="false" styleClass="skinSelection" text="Erzan" toggleGroup="$selectionButton">
<graphic>
<ImageView fx:id="selection2" fitHeight="700.0" fitWidth="700.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../textures/images/erzan.png" />
</image>
</ImageView>
</graphic>
</ToggleButton>
<ToggleButton contentDisplay="TOP" mnemonicParsing="false" styleClass="skinSelection" text="Martin" toggleGroup="$selectionButton">
<graphic>
<ImageView fx:id="selection3" fitHeight="700.0" fitWidth="700.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../textures/images/martin.png" />
</image>
</ImageView>
</graphic>
</ToggleButton>
</children>
</HBox>
<Button mnemonicParsing="false" onAction="#gameScene" text="Next" />
<Button mnemonicParsing="false" onAction="#backButton" text="Back" />
</children>
</VBox>