mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
30dad8509e
- Moved direct connect fields to a dialog as there was not enough room - Moved room code to its own label - Added a skybox texture to the game view - Added the land mesh to the game view
107 lines
6.2 KiB
XML
107 lines
6.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.controls.JFXButton?>
|
|
<?import com.jfoenix.controls.JFXTextField?>
|
|
<?import java.lang.String?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.control.ScrollPane?>
|
|
<?import javafx.scene.layout.ColumnConstraints?>
|
|
<?import javafx.scene.layout.GridPane?>
|
|
<?import javafx.scene.layout.RowConstraints?>
|
|
<?import javafx.scene.layout.StackPane?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<?import javafx.scene.text.Font?>
|
|
|
|
<StackPane fx:id="serverListMainStackPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng302.visualiser.controllers.ServerListController">
|
|
<children>
|
|
<GridPane fx:id="serverListMainGridPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308">
|
|
<children>
|
|
<GridPane fx:id="connectGridPane" prefHeight="79.0" prefWidth="900.0" GridPane.rowIndex="2">
|
|
<children>
|
|
<JFXButton fx:id="directConnectButton" buttonType="RAISED" prefHeight="45.0" prefWidth="220.0" ripplerFill="#3493e3" text="Direct Connect" textFill="WHITE" GridPane.columnIndex="5" GridPane.halignment="RIGHT" GridPane.valignment="CENTER">
|
|
<GridPane.margin>
|
|
<Insets right="50.0" />
|
|
</GridPane.margin>
|
|
</JFXButton>
|
|
<Label fx:id="connectLabel" text="Join Room: " GridPane.columnIndex="2" GridPane.halignment="RIGHT" GridPane.valignment="CENTER">
|
|
<GridPane.margin>
|
|
<Insets right="45.0" />
|
|
</GridPane.margin>
|
|
</Label>
|
|
<JFXButton fx:id="roomConnectButton" prefHeight="45.0" prefWidth="220.0" text="Join Room" GridPane.columnIndex="4" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
|
|
<GridPane.margin>
|
|
<Insets />
|
|
</GridPane.margin>
|
|
</JFXButton>
|
|
<JFXTextField fx:id="roomNumber" promptText="Room Code" GridPane.columnIndex="3">
|
|
<GridPane.margin>
|
|
<Insets right="20.0" />
|
|
</GridPane.margin>
|
|
</JFXTextField>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" />
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="280.0" minWidth="180.0" prefWidth="180.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="320.0" minWidth="70.0" prefWidth="110.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="258.0" minWidth="-Infinity" prefWidth="218.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="167.0" minWidth="17.0" prefWidth="167.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="273.0" minWidth="225.0" prefWidth="225.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
</GridPane>
|
|
<ScrollPane id="serverListPane" fx:id="serverListScrollPane" hbarPolicy="NEVER" prefHeight="1000.0" prefWidth="900.0" GridPane.rowIndex="1">
|
|
<content>
|
|
<VBox id="serverListVBox" fx:id="serverListVBox" prefHeight="200.0" prefWidth="100.0">
|
|
<padding>
|
|
<Insets left="30.0" right="30.0" />
|
|
</padding>
|
|
</VBox>
|
|
</content>
|
|
<GridPane.margin>
|
|
<Insets />
|
|
</GridPane.margin>
|
|
</ScrollPane>
|
|
<GridPane>
|
|
<children>
|
|
<Label text="Party Parrots At Sea" GridPane.valignment="CENTER">
|
|
<font>
|
|
<Font size="31.0" />
|
|
</font>
|
|
<padding>
|
|
<Insets left="35.0" top="5.0" />
|
|
</padding>
|
|
</Label>
|
|
<JFXButton id="hostButton" fx:id="serverListHostButton" buttonType="RAISED" prefHeight="45.0" prefWidth="220.0" text="HOST" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.valignment="CENTER">
|
|
<GridPane.margin>
|
|
<Insets right="50.0" />
|
|
</GridPane.margin>
|
|
</JFXButton>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints maxHeight="1.7976931348623157E308" minHeight="50.0" prefHeight="50.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
</GridPane>
|
|
</children>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="900.0" prefWidth="900.0" />
|
|
</columnConstraints>
|
|
<rowConstraints>
|
|
<RowConstraints maxHeight="80.0" minHeight="80.0" prefHeight="80.0" vgrow="SOMETIMES" />
|
|
<RowConstraints maxHeight="1.7976931348623157E308" minHeight="400.0" prefHeight="459.0" vgrow="SOMETIMES" />
|
|
<RowConstraints maxHeight="120.0" minHeight="63.0" prefHeight="66.0" vgrow="SOMETIMES" />
|
|
</rowConstraints>
|
|
<stylesheets>
|
|
<String fx:value="/css/Master.css" />
|
|
<String fx:value="/css/ServerListView.css" />
|
|
</stylesheets>
|
|
</GridPane>
|
|
</children>
|
|
</StackPane>
|