OthelloSinglePlayer.fxml (2143B) download
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<BorderPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="nl.isygameclient.controllers.games.othello.OthelloSinglePlayerController">
13 <styleClass>
14 <String fx:value="background" />
15 </styleClass>
16 <left>
17 <VBox prefWidth="200" spacing="20" styleClass="surface">
18 <padding>
19 <Insets topRightBottomLeft="20" />
20 </padding>
21 <!-- Window Controls -->
22 <Pane VBox.vgrow="ALWAYS" />
23 <VBox alignment="CENTER" spacing="10">
24 <JFXButton onAction="#onNewGameButtonClick" prefWidth="Infinity" text="New Game">
25 <styleClass>
26 <String fx:value="primary" />
27 <String fx:value="primary-text" />
28 <String fx:value="title-medium" />
29 </styleClass>
30 </JFXButton>
31 <JFXButton onAction="#onMainMenuButtonClick" prefWidth="Infinity" text="Main Menu">
32 <styleClass>
33 <String fx:value="primary" />
34 <String fx:value="primary-text" />
35 <String fx:value="title-medium" />
36 </styleClass>
37 </JFXButton>
38 </VBox>
39 </VBox>
40 </left>
41 <center>
42 <GridPane fx:id="boardGrid" alignment="CENTER" hgap="2" vgap="2">
43 <padding>
44 <Insets topRightBottomLeft="10" />
45 </padding>
46 </GridPane>
47 </center>
48 <stylesheets>
49 <URL value="@../../../css/style.css" />
50 <URL value="@../../../css/themes/dark.theme.css" />
51 <!-- <URL value="@../../../css/themes/light.theme.css" />-->
52 </stylesheets>
53</BorderPane>