Updated Launcher style (WIP)
This commit is contained in:
parent
6183e39773
commit
eb024153a8
@ -3,29 +3,51 @@
|
|||||||
<?import javafx.scene.control.Button?>
|
<?import javafx.scene.control.Button?>
|
||||||
<?import javafx.scene.control.ChoiceBox?>
|
<?import javafx.scene.control.ChoiceBox?>
|
||||||
<?import javafx.scene.image.ImageView?>
|
<?import javafx.scene.image.ImageView?>
|
||||||
|
<?import javafx.scene.image.Image?>
|
||||||
<?import javafx.scene.layout.HBox?>
|
<?import javafx.scene.layout.HBox?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?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"
|
<HBox xmlns:fx="http://javafx.com/fxml" stylesheets="@style.css" fx:id="window"
|
||||||
prefWidth="640" prefHeight="380"
|
prefWidth="640" prefHeight="380"
|
||||||
fx:controller="launcher.FXMLController">
|
fx:controller="launcher.Launcher">
|
||||||
|
|
||||||
<children>
|
<children>
|
||||||
|
|
||||||
<VBox fx:id="sidepanel"
|
<VBox fx:id="sidepanel"
|
||||||
prefWidth="120" prefHeight="380">
|
prefWidth="120" prefHeight="380">
|
||||||
<children>
|
<children>
|
||||||
<Pane fx:id="logo"
|
|
||||||
prefWidth="120" prefHeight="120"></Pane>
|
<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"
|
<VBox fx:id="btn"
|
||||||
prefWidth="120" prefHeight="260">
|
prefWidth="120" prefHeight="260" spacing="5">
|
||||||
<children>
|
<children>
|
||||||
<Button text="Play" fx:id="btn_launch" onAction="#launch"/>
|
<Button text="Play" fx:id="btn_launch" onAction="#launch"
|
||||||
<Button text="Settings" fx:id="btn_settings" onAction="#settings"/>
|
prefWidth="110" prefHeight="15"/>
|
||||||
<Button text="Quit" fx:id="btn_quit" onAction="#quit"/>
|
<Button text="Settings" fx:id="btn_settings" onAction="#settings"
|
||||||
|
prefWidth="110" prefHeight="15"/>
|
||||||
|
<Button text="Quit" fx:id="btn_quit" onAction="#quit"
|
||||||
|
prefWidth="110" prefHeight="15"/>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
<VBox fx:id="prgm"
|
||||||
|
prefWidth="120">
|
||||||
|
<children>
|
||||||
|
<Hyperlink text="GIT" onAction="#website"/>
|
||||||
|
<Text text="Ver: Snapshot"/>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
|
||||||
@ -50,4 +72,4 @@
|
|||||||
|
|
||||||
</children>
|
</children>
|
||||||
|
|
||||||
</HBox>
|
</HBox>
|
BIN
src/launcher/logo.png
Normal file
BIN
src/launcher/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@ -2,26 +2,54 @@
|
|||||||
-fx-background-color: #131320;
|
-fx-background-color: #131320;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************/
|
||||||
/* Sidepanel */
|
/* Sidepanel */
|
||||||
|
/*************/
|
||||||
|
|
||||||
#sidepanel {
|
#sidepanel {
|
||||||
-fx-background-color: #303050;
|
-fx-background-color: #303050;
|
||||||
|
-fx-aligment: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#logo {
|
/* Logo */
|
||||||
-fx-background-image: "logo.png";
|
.title {
|
||||||
|
-fx-font-weight: bold;
|
||||||
|
-fx-font-size: 1.35em;
|
||||||
|
-fx-padding: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
#btn {
|
#btn {
|
||||||
-fx-alignment: center;
|
-fx-alignment: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#btn > Button {
|
#btn Button {
|
||||||
-fx-cursor: hand;
|
-fx-cursor: hand;
|
||||||
-fx-padding: 5;
|
-fx-border-radius: 0;
|
||||||
-fx-width: 100;
|
-fx-border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#btn_launch {
|
#btn_launch {
|
||||||
-fx-text-alignment: center;
|
-fx-background-color: #30c130;
|
||||||
|
-fx-text-fill: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btn_quit {
|
||||||
|
-fx-background-color: #c13030;
|
||||||
|
-fx-text-fill: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#prgm {
|
||||||
|
-fx-alignment: bottom-center;
|
||||||
|
-fx-padding: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
Text, Label {
|
||||||
|
-fx-fill: #f2f2f2;
|
||||||
|
-fx-text-fill: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Link to project */
|
||||||
|
Hyperlink:visited {
|
||||||
|
-fx-text-fill: #0095c8;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user