Chnaged things
This commit is contained in:
parent
4c9ce2c591
commit
a31696c424
@ -1,6 +1,7 @@
|
|||||||
package Launcher;
|
package Launcher;
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
|
import javafx.beans.property.ReadOnlyBooleanProperty;
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Parent;
|
import javafx.scene.Parent;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
@ -18,6 +19,7 @@ public class Main extends Application {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception{
|
public void start(Stage primaryStage) throws Exception{
|
||||||
|
|
||||||
primaryStage.initStyle(StageStyle.UNDECORATED);
|
primaryStage.initStyle(StageStyle.UNDECORATED);
|
||||||
Parent root = FXMLLoader.load(getClass().getResource("Main_Launcher.fxml"));
|
Parent root = FXMLLoader.load(getClass().getResource("Main_Launcher.fxml"));
|
||||||
primaryStage.setTitle("Team-Avion Launcher [WIP]");
|
primaryStage.setTitle("Team-Avion Launcher [WIP]");
|
||||||
@ -32,6 +34,7 @@ public class Main extends Application {
|
|||||||
xOffset = event.getSceneX();
|
xOffset = event.getSceneX();
|
||||||
yOffset = event.getSceneY();
|
yOffset = event.getSceneY();
|
||||||
});
|
});
|
||||||
|
|
||||||
root.lookup("#rectangle").setOnMouseDragged(event -> {
|
root.lookup("#rectangle").setOnMouseDragged(event -> {
|
||||||
primaryStage.setX(event.getScreenX() - xOffset);
|
primaryStage.setX(event.getScreenX() - xOffset);
|
||||||
primaryStage.setY(event.getScreenY() - yOffset);
|
primaryStage.setY(event.getScreenY() - yOffset);
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
}
|
}
|
||||||
#min:hover {
|
#min:hover {
|
||||||
-fx-border-radius: 30px;
|
-fx-border-radius: 30px;
|
||||||
-fx-background-color: red;
|
-fx-background-color: #bf0000;
|
||||||
}
|
}
|
||||||
#exit:hover{
|
#exit:hover{
|
||||||
-fx-border-radius: 30px;
|
-fx-border-radius: 30px;
|
||||||
-fx-background-color: red;
|
-fx-background-color: #bf0000;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user