diff --git a/src/sample/Controller.java b/src/Launcher/Controller.java
similarity index 61%
rename from src/sample/Controller.java
rename to src/Launcher/Controller.java
index 54e5bd1..fd22669 100644
--- a/src/sample/Controller.java
+++ b/src/Launcher/Controller.java
@@ -1,4 +1,4 @@
-package sample;
+package Launcher;
public class Controller {
}
diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java
new file mode 100644
index 0000000..d7dd240
--- /dev/null
+++ b/src/Launcher/Main.java
@@ -0,0 +1,46 @@
+package Launcher;
+
+import javafx.application.Application;
+import javafx.beans.property.ReadOnlyBooleanProperty;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+import javafx.stage.StageStyle;
+import java.awt.*;
+import java.net.URI;
+
+public class Main extends Application {
+
+ private double xOffset = 0;
+ private double yOffset = 0;
+
+ volatile double[] posOrigin = {0, 0};
+
+ @Override
+ public void start(Stage primaryStage) throws Exception{
+
+ primaryStage.initStyle(StageStyle.UNDECORATED);
+ Parent root = FXMLLoader.load(getClass().getResource("Main_Launcher.fxml"));
+ primaryStage.setTitle("Team-Avion Launcher [WIP]");
+ primaryStage.setScene(new Scene(root, 900, 500));
+ primaryStage.show();
+
+ root.lookup("#exit").setOnMouseClicked(event -> primaryStage.close());
+ root.lookup("#min").setOnMouseClicked(event -> primaryStage.setIconified(true));
+
+ // Drag
+ root.lookup("#rectangle").setOnMousePressed(event -> {
+ xOffset = event.getSceneX();
+ yOffset = event.getSceneY();
+ });
+
+ root.lookup("#rectangle").setOnMouseDragged(event -> {
+ primaryStage.setX(event.getScreenX() - xOffset);
+ primaryStage.setY(event.getScreenY() - yOffset);
+ });
+ }
+ public static void main(String[] args) {
+ launch(args);
+ }
+}
diff --git a/src/Launcher/Main_Launcher.fxml b/src/Launcher/Main_Launcher.fxml
new file mode 100644
index 0000000..d5da987
--- /dev/null
+++ b/src/Launcher/Main_Launcher.fxml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Launcher/net/Updater.java b/src/Launcher/net/Updater.java
new file mode 100644
index 0000000..033c281
--- /dev/null
+++ b/src/Launcher/net/Updater.java
@@ -0,0 +1,35 @@
+package Launcher.net;
+
+import java.io.IOException;
+import java.net.URL;
+import java.net.URLConnection;
+
+/**
+ * Simple thing for updating launcher
+ */
+public class Updater {
+
+ private static Updater instance;
+ private URLConnection conn;
+
+ private Updater(String URL) throws IOException {
+ conn = new URL(URL).openConnection();
+ }
+
+ public void download(){
+ //TODO: Download lots of
+ }
+
+ public void downloadMore(){
+ //TODO: Download more
+ }
+
+ public void downloadEvenMore(){
+ //TODO: Download even more
+ }
+
+ public static Updater getInstance(String url) throws IOException {
+ if(instance==null) instance = new Updater(url);
+ return instance;
+ }
+}
diff --git a/src/Launcher/sample.fxml b/src/Launcher/sample.fxml
new file mode 100644
index 0000000..7144e85
--- /dev/null
+++ b/src/Launcher/sample.fxml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/assets/nav.css b/src/assets/nav.css
deleted file mode 100644
index bbd6918..0000000
--- a/src/assets/nav.css
+++ /dev/null
@@ -1,3 +0,0 @@
-#exit{
- -fx-background-color: rgba(255, 0, 255, 0.5);
-}
\ No newline at end of file
diff --git a/src/assets/style/nav.css b/src/assets/style/nav.css
new file mode 100644
index 0000000..97c3317
--- /dev/null
+++ b/src/assets/style/nav.css
@@ -0,0 +1,20 @@
+#pane {
+ -fx-background-color: rgba(38, 33, 33, 1)
+}
+#rectangle {
+ -fx-fill: rgba(30, 25, 25, 1)
+}
+#exit{
+ -fx-background-color: rgba(30, 25, 25, 1);
+}
+#min {
+ -fx-background-color: rgba(30, 25, 25, 1);
+}
+#min:hover {
+ -fx-border-radius: 30px;
+ -fx-background-color: #bf0000;
+}
+#exit:hover{
+ -fx-border-radius: 30px;
+ -fx-background-color: #bf0000;
+}
\ No newline at end of file
diff --git a/src/sample/Main.java b/src/sample/Main.java
deleted file mode 100644
index d9f80d7..0000000
--- a/src/sample/Main.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package sample;
-
-import javafx.application.Application;
-import javafx.fxml.FXMLLoader;
-import javafx.scene.Parent;
-import javafx.scene.Scene;
-import javafx.stage.Stage;
-import javafx.stage.StageStyle;
-
-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"));
- primaryStage.setTitle("Hello World");
- primaryStage.setScene(new Scene(root, 900, 500));
- primaryStage.show();
- root.lookup("#exit").setOnMouseClicked(event -> primaryStage.close());
- }
- public static void main(String[] args) {
- launch(args);
- }
-}
diff --git a/src/sample/sample.fxml b/src/sample/sample.fxml
deleted file mode 100644
index 4aa3517..0000000
--- a/src/sample/sample.fxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-