diff --git a/.idea/misc.xml b/.idea/misc.xml
index e005d92..cc2514c 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,7 +3,7 @@
-
+
diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java
index 205c368..bf8446b 100644
--- a/src/Launcher/Main.java
+++ b/src/Launcher/Main.java
@@ -200,7 +200,7 @@ public class Main extends Application {
login.setResizable(false);
login.setTitle("Minecraft Login");
- dragbar_1 = (Pane) Tabs.load("instance_userinfo").lookup("#dragbar-1");
+ dragbar_1 = (Pane) minecraftlogin.lookup("#dragbar-1");
dragbar_1.setOnMousePressed(event4 -> {
xOffset = event4.getSceneX();
@@ -218,6 +218,21 @@ public class Main extends Application {
minecraftlogin.lookup("#minecraft-login").setOnMouseClicked(event4 ->{
System.out.println("Logging in ....");
+ Pane lw;
+ Scene s = login.getScene();
+ login.setScene(new Scene(lw=(Pane)Tabs.reloadTab("instance_loginwait"), 300, 308));
+ login.getScene().getRoot().setOnMousePressed(event5 -> {
+ xOffset = event5.getSceneX();
+ yOffset = event5.getSceneY();
+ });
+ login.getScene().getRoot().setOnMouseDragged(event5 -> {
+ login.setX(event5.getScreenX() - xOffset);
+ login.setY(event5.getScreenY() - yOffset);
+ });
+ lw.lookup("#login_cancel").setOnMouseClicked(event2 -> {
+ System.out.println("Canceled");
+ login.setScene(s);
+ });
});
});
diff --git a/src/assets/layout/instance_loginwait.fxml b/src/assets/layout/instance_loginwait.fxml
new file mode 100644
index 0000000..0654727
--- /dev/null
+++ b/src/assets/layout/instance_loginwait.fxml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+