hanze/game-client

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

OthelloMainMenu.fxml (2365B) download


 1<?xml version="1.0" encoding="UTF-8"?>
 2
 3
 4<?import com.jfoenix.controls.JFXButton?>
 5<?import javafx.geometry.Insets?>
 6<?import javafx.scene.control.Label?>
 7<?import javafx.scene.layout.AnchorPane?>
 8<?import javafx.scene.layout.VBox?>
 9<?import java.lang.*?>
10<?import java.net.URL?>
11<AnchorPane xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
12            fx:controller="nl.isygameclient.controllers.games.othello.OthelloMainMenuController"
13            prefWidth="680" prefHeight="480">
14    <VBox alignment="CENTER" AnchorPane.rightAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.topAnchor="0">
15        <styleClass>
16            <String fx:value="surface"/>
17        </styleClass>
18        <Label text="Othello">
19            <styleClass>
20                <String fx:value="display-large"/>
21                <String fx:value="on-surface-text"/>
22            </styleClass>
23            <padding>
24                <Insets topRightBottomLeft="50"/>
25            </padding>
26        </Label>
27        <VBox spacing="10" alignment="CENTER" maxWidth="200">
28            <JFXButton text="Single Player" onAction="#onSinglePlayerButtonClick" prefWidth="Infinity">
29                <styleClass>
30                    <String fx:value="primary"/>
31                    <String fx:value="on-primary-text"/>
32                    <String fx:value="title-medium"/>
33                </styleClass>
34            </JFXButton>
35            <JFXButton text="Multiplayer" onAction="#onMultiPlayerButtonClick" prefWidth="Infinity">
36                <styleClass>
37                    <String fx:value="primary"/>
38                    <String fx:value="on-primary-text"/>
39                    <String fx:value="title-medium"/>
40                </styleClass>
41            </JFXButton>
42            <JFXButton text="Exit" onAction="#onExitGameButtonClick" prefWidth="Infinity">
43                <styleClass>
44                    <String fx:value="primary"/>
45                    <String fx:value="on-primary-text"/>
46                    <String fx:value="title-medium"/>
47                </styleClass>
48            </JFXButton>
49        </VBox>
50    </VBox>
51    <stylesheets>
52        <URL value="@../../../css/style.css" />
53        <URL value="@../../../css/themes/dark.theme.css" />
54        <!--      <URL value="@../css/themes/light.theme.css" />-->
55    </stylesheets>
56</AnchorPane>