Chnaged things
This commit is contained in:
parent
977ca874ad
commit
b9678ba36d
src
Launcher
assets/style
sample
@ -1,4 +1,4 @@
|
||||
package sample;
|
||||
package Launcher;
|
||||
|
||||
public class Controller {
|
||||
}
|
@ -1,11 +1,9 @@
|
||||
package sample;
|
||||
package Launcher;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.stage.StageStyle;
|
||||
|
||||
@ -19,7 +17,7 @@ public class Main extends Application {
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws Exception{
|
||||
primaryStage.initStyle(StageStyle.UNDECORATED);
|
||||
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
|
||||
Parent root = FXMLLoader.load(getClass().getResource("Main_Launcher.fxml"));
|
||||
primaryStage.setTitle("Team-Avion Launcher [WIP]");
|
||||
primaryStage.setScene(new Scene(root, 900, 500));
|
||||
primaryStage.show();
|
22
src/Launcher/Main_Launcher.fxml
Normal file
22
src/Launcher/Main_Launcher.fxml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Tab?>
|
||||
<?import javafx.scene.control.TabPane?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.Pane?>
|
||||
<?import javafx.scene.shape.Rectangle?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<Pane id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500" prefWidth="900" stylesheets="@../assets/style/nav.css" xmlns="http://javafx.com/javafx/8.0.112-ea" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<Rectangle id="rectangle" arcHeight="5.0" arcWidth="5.0" fill="white" height="50.0" strokeType="INSIDE" width="900.0" />
|
||||
<Button id="exit" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="862.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../assets/style/nav.css" text="X" textFill="WHITE" />
|
||||
<Label layoutX="46.0" layoutY="11.0" text="Team-Avion Launcher" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Centaur" size="24.0" />
|
||||
</font>
|
||||
</Label>
|
||||
</children>
|
||||
</Pane>
|
@ -1,4 +1,4 @@
|
||||
package sample.net;
|
||||
package Launcher.net;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
@ -1,16 +1,13 @@
|
||||
#pane {
|
||||
-fx-background-color: rgba(38, 33, 33, 1)
|
||||
}
|
||||
#rectangle {
|
||||
-fx-fill: rgba(30, 25, 25, 1)
|
||||
}
|
||||
#exit{
|
||||
-fx-background-radius: 0;
|
||||
-fx-background-color: rgba(30, 25, 25, 1);
|
||||
}
|
||||
#exit:hover{
|
||||
-fx-border-radius: 12px;
|
||||
-fx-background-color: cadetblue;
|
||||
}
|
||||
#pane{
|
||||
-fx-border-width: 1px;
|
||||
-fx-border-color: black;
|
||||
-fx-border-style: solid;
|
||||
}
|
||||
|
||||
#hyperlink {
|
||||
|
||||
-fx-border-radius: 30px;
|
||||
-fx-background-color: red;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Hyperlink?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.layout.Pane?>
|
||||
<?import javafx.scene.shape.Rectangle?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<Pane id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500" prefWidth="900" style="-fx-background-color: rgba(38, 33, 33, 1);;" xmlns="http://javafx.com/javafx/8.0.102" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<Rectangle id="rectangle" arcHeight="5.0" arcWidth="5.0" fill="white" height="50.0" strokeType="INSIDE" style="-fx-fill: rgba(30, 25, 25, 1);" width="900.0" />
|
||||
<Button id="exit" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="862.0" layoutY="13.0" mnemonicParsing="false" style="-fx-background-color: rgba(30, 25, 25, 1);" stylesheets="@../assets/style/nav.css" text="X" textFill="WHITE" />
|
||||
<Label layoutX="46.0" layoutY="11.0" text="Team Avion Launcher" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Centaur" size="24.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#e4e4e4" height="450.0" layoutX="-1.0" layoutY="50.0" strokeType="INSIDE" style="-fx-fill: rgba(30, 25, 25, 1);" width="145.0" />
|
||||
<Hyperlink id="hyperlink" layoutX="26.0" layoutY="66.0" text="Our Modpacks" />
|
||||
<Hyperlink layoutX="26.0" layoutY="102.0" text="Settings" />
|
||||
</children>
|
||||
</Pane>
|
Loading…
x
Reference in New Issue
Block a user