OthelloMultiPlayer.fxml (2663B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <?import com.jfoenix.controls.JFXButton?> 4 <?import java.lang.String?> 5 <?import java.net.URL?> 6 <?import javafx.geometry.Insets?> 7 <?import javafx.scene.layout.BorderPane?> 8 <?import javafx.scene.layout.GridPane?> 9 <?import javafx.scene.layout.Pane?> 10 <?import javafx.scene.layout.VBox?> 11 12 <?import javafx.scene.control.TextField?> 13 <?import javafx.scene.control.Label?> 14 <BorderPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" 15 fx:controller="nl.isygameclient.controllers.games.othello.OthelloMultiPlayerController"> 16 <styleClass> 17 <String fx:value="background" /> 18 </styleClass> 19 <left> 20 <VBox prefWidth="200" spacing="20" styleClass="surface"> 21 <padding> 22 <Insets topRightBottomLeft="20" /> 23 </padding> 24 <Label text="Host" styleClass="surface-text"/> 25 <TextField fx:id="hostField"/> 26 <Label text="Port" styleClass="surface-text"/> 27 <TextField fx:id="portField"/> 28 <Label text="Player Name" styleClass="surface-text"/> 29 <TextField fx:id="nameField" /> 30 <Label text="Opponent Name" styleClass="surface-text"/> 31 <TextField fx:id="opponentField"/> 32 <!-- Window Controls --> 33 <Pane VBox.vgrow="ALWAYS" /> 34 <VBox alignment="CENTER" spacing="10"> 35 <JFXButton onAction="#onNewGameButtonClick" prefWidth="Infinity" text="New Game"> 36 <styleClass> 37 <String fx:value="primary" /> 38 <String fx:value="primary-text" /> 39 <String fx:value="title-medium" /> 40 </styleClass> 41 </JFXButton> 42 <JFXButton onAction="#onMainMenuButtonClick" prefWidth="Infinity" text="Main Menu"> 43 <styleClass> 44 <String fx:value="primary" /> 45 <String fx:value="primary-text" /> 46 <String fx:value="title-medium" /> 47 </styleClass> 48 </JFXButton> 49 </VBox> 50 </VBox> 51 </left> 52 <center> 53 <GridPane fx:id="boardGrid" alignment="CENTER" hgap="2" vgap="2"> 54 <padding> 55 <Insets topRightBottomLeft="10" /> 56 </padding> 57 </GridPane> 58 </center> 59 <stylesheets> 60 <URL value="@../../../css/style.css" /> 61 <URL value="@../../../css/themes/dark.theme.css" /> 62 <!-- <URL value="@../../../css/themes/light.theme.css" />--> 63 </stylesheets> 64 </BorderPane>