mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
37e4fe4ce7
- rearranged the layout of all the nodes - set CSS files for the dialog - added close button tags: #story[1273]
217 lines
13 KiB
XML
217 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.controls.JFXButton?>
|
|
<?import com.jfoenix.controls.JFXCheckBox?>
|
|
<?import com.jfoenix.controls.JFXDialogLayout?>
|
|
<?import com.jfoenix.controls.JFXSlider?>
|
|
<?import com.jfoenix.controls.JFXTextField?>
|
|
<?import java.net.URL?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
<?import javafx.scene.layout.ColumnConstraints?>
|
|
<?import javafx.scene.layout.GridPane?>
|
|
<?import javafx.scene.layout.RowConstraints?>
|
|
<?import javafx.scene.text.Font?>
|
|
<JFXDialogLayout maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity"
|
|
minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/8"
|
|
xmlns:fx="http://javafx.com/fxml/1"
|
|
fx:controller="seng302.visualiser.controllers.dialogs.ServerCreationController">
|
|
<children>
|
|
<GridPane>
|
|
<children>
|
|
<JFXButton fx:id="submitBtn" onMouseEntered="#playButtonHoverSound" prefHeight="55.0" prefWidth="250.0" text="SUBMIT" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="CENTER">
|
|
<font>
|
|
<Font name="System Bold" size="13.0" />
|
|
</font></JFXButton>
|
|
<GridPane GridPane.rowIndex="1">
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
<children>
|
|
<GridPane>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints maxHeight="-Infinity" minHeight="90.0" prefHeight="90.0"
|
|
vgrow="SOMETIMES"/>
|
|
<RowConstraints maxHeight="-Infinity" minHeight="90.0" prefHeight="90.0"
|
|
vgrow="SOMETIMES"/>
|
|
<RowConstraints maxHeight="-Infinity" minHeight="90.0" prefHeight="90.0"
|
|
vgrow="SOMETIMES"/>
|
|
<RowConstraints maxHeight="-Infinity" minHeight="90.0" prefHeight="90.0"
|
|
vgrow="SOMETIMES"/>
|
|
</rowConstraints>
|
|
<children>
|
|
<JFXTextField fx:id="serverName" promptText="SERVER NAME">
|
|
<padding>
|
|
<Insets left="15.0" right="15.0" />
|
|
</padding>
|
|
<GridPane.margin>
|
|
<Insets left="20.0" right="35.0"/>
|
|
</GridPane.margin>
|
|
</JFXTextField>
|
|
<GridPane fx:id="maxPlayersGridPane" GridPane.rowIndex="1">
|
|
<children>
|
|
<Label styleClass="optionLabel" text="MAX PLAYERS" translateY="5.0"
|
|
GridPane.halignment="CENTER" GridPane.valignment="BOTTOM">
|
|
<GridPane.margin>
|
|
<Insets/>
|
|
</GridPane.margin>
|
|
</Label>
|
|
<JFXSlider fx:id="maxPlayersSlider" blockIncrement="1.0"
|
|
majorTickUnit="2.0" max="20.0" min="1.0" minorTickCount="1"
|
|
snapToTicks="true" styleClass="maxPlayers" value="11.0"
|
|
GridPane.columnIndex="1" GridPane.valignment="BOTTOM">
|
|
<GridPane.margin>
|
|
<Insets right="30.0"/>
|
|
</GridPane.margin>
|
|
</JFXSlider>
|
|
<Label fx:id="maxPlayersLabel" alignment="CENTER"
|
|
styleClass="sliderLabel" text="10" GridPane.columnIndex="1"
|
|
GridPane.halignment="CENTER" GridPane.rowIndex="1"
|
|
GridPane.valignment="CENTER">
|
|
<GridPane.margin>
|
|
<Insets right="15.0"/>
|
|
</GridPane.margin>
|
|
</Label>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="30.0" prefWidth="100.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="100.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints minHeight="10.0" percentHeight="60.0" prefHeight="10.0" vgrow="SOMETIMES" />
|
|
<RowConstraints minHeight="10.0" percentHeight="40.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
</GridPane>
|
|
<GridPane fx:id="maxPlayersGridPane1" GridPane.rowIndex="2">
|
|
<children>
|
|
<GridPane>
|
|
<children>
|
|
<Label alignment="CENTER" styleClass="optionLabel"
|
|
text="NUMBER OF" GridPane.halignment="CENTER"
|
|
GridPane.valignment="BOTTOM"/>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
</GridPane>
|
|
<JFXSlider fx:id="legsSlider" blockIncrement="1.0"
|
|
majorTickUnit="2.0" max="20.0" min="1.0" minorTickCount="1"
|
|
snapToTicks="true" styleClass="maxPlayers" value="11.0"
|
|
GridPane.columnIndex="1" GridPane.halignment="CENTER"
|
|
GridPane.valignment="BOTTOM">
|
|
<GridPane.margin>
|
|
<Insets right="30.0"/>
|
|
</GridPane.margin>
|
|
</JFXSlider>
|
|
<Label alignment="CENTER" styleClass="optionLabel"
|
|
text="REPEATING LEGS" GridPane.halignment="CENTER"
|
|
GridPane.rowIndex="1"/>
|
|
<Label fx:id="legsSliderLabel" styleClass="sliderLabel" text="10"
|
|
GridPane.columnIndex="1" GridPane.rowIndex="1">
|
|
<GridPane.margin>
|
|
<Insets right="15.0"/>
|
|
</GridPane.margin>
|
|
</Label>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="30.0" prefWidth="100.0" />
|
|
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES"
|
|
minWidth="100.0" prefWidth="100.0"/>
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints maxHeight="-Infinity" minHeight="10.0"
|
|
percentHeight="60.0" prefHeight="100.0" vgrow="SOMETIMES"/>
|
|
<RowConstraints maxHeight="-Infinity" minHeight="10.0"
|
|
percentHeight="40.0" prefHeight="100.0" vgrow="SOMETIMES"/>
|
|
</rowConstraints>
|
|
</GridPane>
|
|
<GridPane GridPane.rowIndex="3">
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0"
|
|
percentWidth="30.0" prefWidth="100.0"/>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0"
|
|
prefWidth="100.0"/>
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints minHeight="10.0" prefHeight="30.0"
|
|
vgrow="SOMETIMES"/>
|
|
</rowConstraints>
|
|
<children>
|
|
<JFXCheckBox fx:id="pickupsCheckBox" text=" "
|
|
GridPane.columnIndex="1"/>
|
|
<Label styleClass="optionLabel" text="ENABLE TOKENS"
|
|
GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
|
|
</children>
|
|
</GridPane>
|
|
</children>
|
|
</GridPane>
|
|
<GridPane GridPane.columnIndex="1">
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="35.0" prefWidth="35.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="35.0" minWidth="35.0" prefWidth="35.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
<children>
|
|
<JFXButton fx:id="lastMapButton" maxHeight="300.0" minHeight="300.0" prefHeight="300.0" prefWidth="35.0" style="-fx-border-color: lightgrey; -fx-border-radius: 5;" text="<" textFill="#5b5b5b" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
|
|
<font>
|
|
<Font name="System Bold" size="13.0" />
|
|
</font></JFXButton>
|
|
<JFXButton fx:id="nextMapButton" maxHeight="300.0" minHeight="300.0" minWidth="35.0" prefHeight="300.0" style="-fx-border-color: lightgrey; -fx-border-radius: 5;" text=">" textFill="#5b5b5b" GridPane.columnIndex="2" GridPane.valignment="CENTER">
|
|
<font>
|
|
<Font name="System Bold" size="13.0" />
|
|
</font></JFXButton>
|
|
<GridPane style="-fx-background-color: lightblue; -fx-border-color: grey; -fx-border-radius: 5; -fx-background-radius: 5;" GridPane.columnIndex="1">
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints maxHeight="25.0" minHeight="25.0" prefHeight="25.0" vgrow="SOMETIMES" />
|
|
<RowConstraints maxHeight="342.0" minHeight="10.0" prefHeight="336.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
<children>
|
|
<Label fx:id="mapNameLabel" styleClass="optionLabel" text="MAP NAME"
|
|
GridPane.halignment="CENTER"/>
|
|
<AnchorPane fx:id="mapHolder" prefHeight="333.0" prefWidth="404.0" GridPane.rowIndex="1" />
|
|
</children>
|
|
</GridPane>
|
|
</children>
|
|
</GridPane>
|
|
</children>
|
|
</GridPane>
|
|
<Label fx:id="hostDialogHeader" text="HOST A GAME SERVER" GridPane.halignment="CENTER">
|
|
<font>
|
|
<Font size="20.0" />
|
|
</font></Label>
|
|
<Label fx:id="closeLabel" text="✖" translateY="-10.0" GridPane.halignment="RIGHT"
|
|
GridPane.valignment="TOP"/>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints maxHeight="100.0" minHeight="100.0" prefHeight="100.0" vgrow="SOMETIMES" />
|
|
<RowConstraints maxHeight="511.0" minHeight="90.0" prefHeight="370.0" vgrow="SOMETIMES" />
|
|
<RowConstraints maxHeight="102.0" minHeight="100.0" prefHeight="100.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
</GridPane>
|
|
</children>
|
|
<stylesheets>
|
|
<URL value="@../../css/Master.css"/>
|
|
<URL value="@../../css/dialogs/ServerCreation.css"/>
|
|
</stylesheets>
|
|
</JFXDialogLayout>
|