hanze/game-client

src/main/resources/nl/isygameclient/views/games/othello/OthelloSinglePlayer.fxml in tournament
Repositories | Summary | Log | Files

OthelloSinglePlayer.fxml (2223B) download


 1<?xml version="1.0" encoding="UTF-8"?>
 2
 3<?import java.lang.*?>
 4<?import javafx.scene.layout.*?>
 5
 6<?import javafx.geometry.Insets?>
 7<?import com.jfoenix.controls.JFXButton?>
 8<BorderPane xmlns="http://javafx.com/javafx"
 9            xmlns:fx="http://javafx.com/fxml"
10            stylesheets="@../../../css/views/othello.css"
11            fx:controller="nl.isygameclient.controllers.games.othello.OthelloSinglePlayerController"
12            prefHeight="400.0" prefWidth="600.0">
13    <styleClass>
14        <String fx:value="surface"/>
15    </styleClass>
16    <left>
17        <VBox prefWidth="200" styleClass="surface-variant" spacing="20">
18            <padding>
19                <Insets topRightBottomLeft="20"/>
20            </padding>
21            <!-- Window Controls -->
22            <Pane VBox.vgrow="ALWAYS"/>
23            <VBox spacing="10" alignment="CENTER">
24                <JFXButton text="New Game" onAction="#onNewGameButtonClick" prefWidth="Infinity">
25                    <styleClass>
26                        <String fx:value="primary"/>
27                        <String fx:value="on-primary-text"/>
28                        <String fx:value="title-medium"/>
29                    </styleClass>
30                </JFXButton>
31                <JFXButton text="Main Menu" onAction="#onMainMenuButtonClick" prefWidth="Infinity">
32                    <styleClass>
33                        <String fx:value="primary"/>
34                        <String fx:value="on-primary-text"/>
35                        <String fx:value="title-medium"/>
36                    </styleClass>
37                </JFXButton>
38                <JFXButton text="Exit" onAction="#onExitButtonClick" prefWidth="Infinity">
39                    <styleClass>
40                        <String fx:value="primary"/>
41                        <String fx:value="on-primary-text"/>
42                        <String fx:value="title-medium"/>
43                    </styleClass>
44                </JFXButton>
45            </VBox>
46        </VBox>
47    </left>
48    <center>
49        <GridPane fx:id="boardGrid" alignment="CENTER" vgap="2" hgap="2">
50            <padding>
51                <Insets topRightBottomLeft="10"/>
52            </padding>
53        </GridPane>
54    </center>
55</BorderPane>