You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
5.9 KiB
121 lines
5.9 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.controls.JFXToggleButton?>
|
|
<?import com.jfoenix.controls.JFXButton?>
|
|
<?import javafx.scene.Cursor?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.control.MenuItem?>
|
|
<?import javafx.scene.control.SplitMenuButton?>
|
|
<?import javafx.scene.image.Image?>
|
|
<?import javafx.scene.image.ImageView?>
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
<?import javafx.scene.shape.Line?>
|
|
<?import javafx.scene.shape.Rectangle?>
|
|
<?import javafx.scene.text.Font?>
|
|
<?import javafx.scene.control.RadioButton?>
|
|
<?import javafx.scene.control.ToggleGroup?>
|
|
|
|
<AnchorPane fx:id="levelRoot" xmlns:fx="http://javafx.com/fxml/1" id="pane" maxHeight="-Infinity" maxWidth="-Infinity"
|
|
minHeight="-Infinity"
|
|
minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0"
|
|
xmlns="http://javafx.com/javafx/11" fx:controller="controller.GameConfigMenuController">
|
|
<children>
|
|
<ImageView fitHeight="709.0" fitWidth="1072.0" layoutX="-16.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="/image/difficulty.jpg"/>
|
|
</image>
|
|
</ImageView>
|
|
<Rectangle arcHeight="5.0" arcWidth="5.0" height="344.0" layoutX="33.0" layoutY="137.0" opacity="0.6"
|
|
stroke="BLACK" strokeLineCap="ROUND" strokeLineJoin="ROUND" strokeMiterLimit="0.0" strokeWidth="5.0"
|
|
width="272.0">
|
|
<cursor>
|
|
<Cursor fx:constant="DEFAULT"/>
|
|
</cursor>
|
|
</Rectangle>
|
|
<Label layoutX="44.0" layoutY="151.0" prefHeight="18.0" prefWidth="69.0" text="Difficulty" textFill="WHITE">
|
|
<font>
|
|
<Font name="Segoe UI Black" size="12.0"/>
|
|
</font>
|
|
</Label>
|
|
<Line endX="181.0" endY="-3.0517578125E-5" layoutX="107.0" layoutY="160.0" startX="1.0889129638671875"
|
|
startY="-1.52587890625E-5" stroke="#535252"/>
|
|
<RadioButton fx:id="radioButton1" layoutX="85" layoutY="200" prefHeight="33.0" prefWidth="75.0" textFill="WHITE" onMouseClicked="#setDifficulty1">
|
|
<toggleGroup>
|
|
<ToggleGroup fx:id="group"/>
|
|
</toggleGroup>
|
|
</RadioButton>
|
|
<RadioButton fx:id="radioButton2" layoutX="160" layoutY="200" prefHeight="33.0" prefWidth="75.0" textFill="WHITE" onMouseClicked="#setDifficulty2">
|
|
<toggleGroup>
|
|
<fx:reference source="group"/>
|
|
</toggleGroup>
|
|
</RadioButton>
|
|
<RadioButton fx:id="radioButton3" layoutX="238" layoutY="200" prefHeight="33.0" prefWidth="75.0" textFill="WHITE" onMouseClicked="#setDifficulty3">
|
|
<toggleGroup>
|
|
<fx:reference source="group"/>
|
|
</toggleGroup>
|
|
</RadioButton>
|
|
<Line endX="240.5999755859375" endY="-3.0517578125E-5" layoutX="47.0" layoutY="467.0"
|
|
startX="1.0889129638671875"
|
|
startY="-1.52587890625E-5" stroke="#535252"/>
|
|
<Label layoutX="144.0" layoutY="229.0" text="Medium" textFill="#a9a1a1">
|
|
<font>
|
|
<Font name="Segoe UI Black" size="12.0"/>
|
|
</font>
|
|
</Label>
|
|
<Label layoutX="79.0" layoutY="229.0" text="Easy" textFill="#a9a1a1">
|
|
<font>
|
|
<Font name="Segoe UI Black" size="12.0"/>
|
|
</font>
|
|
</Label>
|
|
<Label layoutX="230.0" layoutY="229.0" text="Hard" textFill="#a9a1a1">
|
|
<font>
|
|
<Font name="Segoe UI Black" size="12.0"/>
|
|
</font>
|
|
</Label>
|
|
<Line endX="181.0" endY="-3.0517578125E-5" layoutX="107.0" layoutY="275.0" startX="-26.200027465820312"
|
|
startY="-3.0517578125E-5" stroke="#535252"/>
|
|
<Label layoutX="44.0" layoutY="265.0" prefHeight="18.0" prefWidth="30.0" text="Skin" textFill="WHITE">
|
|
<font>
|
|
<Font name="Segoe UI Black" size="12.0"/>
|
|
</font>
|
|
</Label>
|
|
<ImageView fx:id="ImageChange" fitHeight="126.0" fitWidth="109.0" layoutX="38.0" layoutY="309.0" pickOnBounds="true"
|
|
preserveRatio="true">
|
|
<image>
|
|
<Image url="/image/personnage/Perso1.png"/>
|
|
</image>
|
|
</ImageView>
|
|
<SplitMenuButton alignment="CENTER" contentDisplay="CENTER" layoutX="152.0" layoutY="351.0"
|
|
mnemonicParsing="false" text="Choix Personnage">
|
|
<items>
|
|
<MenuItem onAction="#changeSkin1" fx:id="choice1" mnemonicParsing="false" text="Personnage 1"/>
|
|
<MenuItem onAction="#changeSkin2" fx:id="choice2" mnemonicParsing="false" text="Personnage 2"/>
|
|
<MenuItem onAction="#changeSkin3" fx:id="choice3" mnemonicParsing="false" text="Personnage 3"/>
|
|
</items>
|
|
<font>
|
|
<Font name="Segoe UI Black" size="12.0"/>
|
|
</font>
|
|
</SplitMenuButton>
|
|
</children>
|
|
<Rectangle arcHeight="5.0" arcWidth="5.0" height="50.0" layoutX="775.0" layoutY="525.0" opacity="0.6"
|
|
stroke="BLACK" strokeLineCap="ROUND" strokeLineJoin="ROUND" strokeMiterLimit="0.0" strokeWidth="5.0"
|
|
width="100.0">
|
|
<cursor>
|
|
<Cursor fx:constant="DEFAULT"/>
|
|
</cursor>
|
|
</Rectangle>
|
|
<Rectangle arcHeight="5.0" arcWidth="5.0" height="50.0" layoutX="775.0" layoutY="525.0" opacity="0.6"
|
|
stroke="BLACK" strokeLineCap="ROUND" strokeLineJoin="ROUND" strokeMiterLimit="0.0" strokeWidth="5.0"
|
|
width="100.0">
|
|
<cursor>
|
|
<Cursor fx:constant="DEFAULT"/>
|
|
</cursor>
|
|
</Rectangle>
|
|
<JFXButton layoutX="788" layoutY="535" prefHeight="30.0" prefWidth="75.0"
|
|
style="-fx-background-color: #EB9C0A;" text="START" textFill="WHITE" onMouseClicked="#launchGame" fx:id="button">
|
|
<font>
|
|
<Font name="Segoe UI Black" size="13.0"/>
|
|
</font>
|
|
</JFXButton>
|
|
</AnchorPane>
|