2021-05-03 02:29:11 +02:00
|
|
|
/**
|
|
|
|
* CLASS LAUNCHER
|
|
|
|
*
|
|
|
|
* Fenêtre de configuration du jeu préalablement au lancement d'une partie
|
|
|
|
*
|
|
|
|
* @author François Autin
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
package launcher;
|
|
|
|
|
2021-05-27 03:02:36 +02:00
|
|
|
import javafx.application.Application;
|
|
|
|
import javafx.scene.Parent;
|
|
|
|
import javafx.scene.Scene;
|
|
|
|
import javafx.stage.Stage;
|
2021-05-28 01:20:26 +02:00
|
|
|
import javafx.stage.StageStyle;
|
2021-05-27 03:02:36 +02:00
|
|
|
import javafx.fxml.*;
|
2021-05-03 02:29:11 +02:00
|
|
|
|
2021-05-27 03:02:36 +02:00
|
|
|
public class Launcher extends Application {
|
|
|
|
|
2021-05-28 01:15:50 +02:00
|
|
|
/*
|
|
|
|
* Start method is used by Launcher as an implementation of the Application class to create a JavaFX thread to display the GUI window
|
|
|
|
*/
|
2021-05-27 03:02:36 +02:00
|
|
|
public void start(Stage primaryStage) throws Exception {
|
2021-05-27 03:14:20 +02:00
|
|
|
|
2021-05-28 01:15:50 +02:00
|
|
|
Parent root = FXMLLoader.load(getClass().getResource("ui/launcher.fxml"));
|
|
|
|
|
|
|
|
Scene main = new Scene(root);
|
2021-05-03 02:29:11 +02:00
|
|
|
|
2021-05-28 01:20:26 +02:00
|
|
|
primaryStage.initStyle(StageStyle.UNDECORATED);
|
2021-05-28 01:15:50 +02:00
|
|
|
primaryStage.setTitle("Boulevard Combattant");
|
2021-05-27 03:14:20 +02:00
|
|
|
primaryStage.setScene(main);
|
|
|
|
primaryStage.show();
|
2021-05-28 01:15:50 +02:00
|
|
|
|
2021-05-03 02:29:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|