Reorganized project to fit Maven's directory structure.
This commit is contained in:
BIN
src/main/resources/launcher/charfaces/blue.png
Normal file
BIN
src/main/resources/launcher/charfaces/blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/main/resources/launcher/charfaces/default.png
Normal file
BIN
src/main/resources/launcher/charfaces/default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 212 KiB |
102
src/main/resources/launcher/launcher.fxml
Normal file
102
src/main/resources/launcher/launcher.fxml
Normal 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>
|
BIN
src/main/resources/launcher/logo.png
Normal file
BIN
src/main/resources/launcher/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
81
src/main/resources/launcher/style.css
Normal file
81
src/main/resources/launcher/style.css
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user