Reorganized project to fit Maven's directory structure.

This commit is contained in:
François Autin
2021-06-24 18:39:34 +02:00
parent c917f8aeb0
commit 1278f39977
231 changed files with 70 additions and 57 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Launcher FXML
@author François AUTIN
-->
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Hyperlink?>
<HBox xmlns:fx="http://javafx.com/fxml" stylesheets="@style.css" fx:id="window"
prefWidth="1280" prefHeight="720"
fx:controller="launcher.Launcher">
<children>
<VBox fx:id="sidepanel"
minWidth="280" prefHeight="1280">
<children>
<ImageView fx:id="logo" fitHeight="120" fitWidth="120">
<image>
<Image url="/launcher/logo.png"/>
</image>
</ImageView>
<Label StyleClass="title" text="BOULEVARD"/>
<Label StyleClass="title" text="COMBATTANT"/>
<VBox fx:id="btn"
prefWidth="120" prefHeight="260" spacing="5">
<children>
<Label text="Resolution"/>
<ChoiceBox fx:id="resolution" styleClass="res_box"/>
<HBox fx:id="fs_box" styleClass="fs_box">
<children>
<Label text="Fullscreen "/>
<CheckBox fx:id="fullscreen"/>
</children>
</HBox>
<Label text="Rounds"/>
<ChoiceBox fx:id="rounds" styleClass="res_box"/>
<HBox fx:id="hb_box" styleClass="fs_box">
<children>
<Label text="Hitboxes "/>
<CheckBox fx:id="hitboxes"/>
</children>
</HBox>
<Button text="Play" fx:id="btn_launch" onAction="#runGame"
prefWidth="110" prefHeight="15"/>
<Button text="Quit" fx:id="btn_quit" onAction="#quit"
prefWidth="110" prefHeight="15"/>
</children>
</VBox>
<VBox fx:id="prgm"
prefWidth="120">
<children>
<Hyperlink text="GIT" onAction="#website"/>
<Text text="Ver: Snapshot"/>
</children>
</VBox>
</children>
</VBox>
<HBox fx:id="picker">
<children>
<VBox fx:id="p1" styleClass="pane_p" prefWidth="500" prefHeight="720">
<children>
<ImageView styleClass="char_img" fitHeight="400" fitWidth="400">
<image>
<Image url="/launcher/charfaces/default.png"/>
</image>
</ImageView>
<ChoiceBox styleClass="char_box" onAction="#chp1"/>
</children>
</VBox>
<VBox fx:id="p2" styleClass="pane_p" prefWidth="500" prefHeight="720">
<children>
<ImageView styleClass="char_img" fx:id="char_p2" fitHeight="400" fitWidth="400">
<image>
<Image url="/launcher/charfaces/default.png"/>
</image>
</ImageView>
<ChoiceBox styleClass="char_box" onAction="#chp2"/>
</children>
</VBox>
</children>
</HBox>
</children>
</HBox>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,81 @@
#window {
-fx-background-color: #131320;
-fx-font-size: 1.25em;
}
Text, Label {
-fx-fill: #f2f2f2;
-fx-text-fill: #f2f2f2;
}
/*************/
/* Sidepanel */
/*************/
#sidepanel {
-fx-background-color: #303050;
-fx-alignment: center;
}
/* Logo */
.title {
-fx-font-weight: bold;
-fx-font-size: 1.5em;
-fx-padding: 1;
}
/* Buttons */
#btn {
-fx-alignment: center;
}
#btn Button {
-fx-cursor: hand;
-fx-border-radius: 0;
-fx-border: none;
-fx-font-weight: bold;
}
#btn_launch {
-fx-background-color: #30c130;
-fx-text-fill: #f2f2f2;
}
#btn_quit {
-fx-background-color: #c13030;
-fx-text-fill: #f2f2f2;
}
/* Settings */
ChoiceBox Label {
-fx-fill: #000000;
-fx-text-fill: #000000;
}
.fs_box {
-fx-alignment: center;
}
/* Project details */
#prgm {
-fx-alignment: bottom-center;
-fx-padding: 5;
}
/* Link to project */
Hyperlink:visited {
-fx-text-fill: #0095c8;
}
/**********/
/* Picker */
/**********/
#picker {
-fx-alignment: top-center;
}
#picker VBox {
-fx-alignment: top-center;
}