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:14:20 +02:00
|
|
|
import java.io.FileInputStream;
|
|
|
|
|
2021-05-27 03:02:36 +02:00
|
|
|
import javafx.application.Application;
|
|
|
|
import javafx.scene.Parent;
|
|
|
|
import javafx.scene.Scene;
|
|
|
|
import javafx.stage.Stage;
|
|
|
|
import javafx.fxml.*;
|
2021-05-03 02:29:11 +02:00
|
|
|
|
2021-05-27 03:02:36 +02:00
|
|
|
public class Launcher extends Application {
|
|
|
|
|
|
|
|
public void start(Stage primaryStage) throws Exception {
|
2021-05-27 03:14:20 +02:00
|
|
|
FileInputStream r_launcher = new FileInputStream("ui/launcher.fxml");
|
|
|
|
FXMLLoader floader = new FXMLLoader();
|
|
|
|
Parent root = floader.load(r_launcher);
|
|
|
|
Scene main = root.getScene();
|
|
|
|
|
|
|
|
primaryStage.setTitle("Boulevard Combattant");
|
2021-05-03 02:29:11 +02:00
|
|
|
|
2021-05-27 03:14:20 +02:00
|
|
|
primaryStage.setScene(main);
|
|
|
|
primaryStage.show();
|
2021-05-03 02:29:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|