Removed FXMLController, gave controller role to Launcher instead
This commit is contained in:
parent
1476cbed43
commit
6183e39773
@ -1,25 +0,0 @@
|
|||||||
package launcher;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
|
|
||||||
public class FXMLController {
|
|
||||||
|
|
||||||
public FXMLController() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
public void launch() {
|
|
||||||
Launcher.runGame();
|
|
||||||
}
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
public void settings() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
public void quit() {
|
|
||||||
System.exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -13,6 +13,7 @@ import javafx.application.Application;
|
|||||||
import javafx.scene.Parent;
|
import javafx.scene.Parent;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import javafx.stage.StageStyle;
|
||||||
import javafx.fxml.*;
|
import javafx.fxml.*;
|
||||||
|
|
||||||
import engine.Engine;
|
import engine.Engine;
|
||||||
@ -41,7 +42,7 @@ public class Launcher extends Application {
|
|||||||
|
|
||||||
Scene main = new Scene(root);
|
Scene main = new Scene(root);
|
||||||
|
|
||||||
//primaryStage.initStyle(StageStyle.UNDECORATED);
|
primaryStage.initStyle(StageStyle.UNDECORATED);
|
||||||
primaryStage.setTitle("Boulevard Combattant");
|
primaryStage.setTitle("Boulevard Combattant");
|
||||||
primaryStage.setScene(main);
|
primaryStage.setScene(main);
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
@ -56,11 +57,26 @@ public class Launcher extends Application {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public void launch() {
|
||||||
|
Launcher.runGame();
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public void settings() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void openSettings() {
|
@FXML
|
||||||
|
public void quit() {
|
||||||
|
System.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public void website() {
|
||||||
|
getHostServices().showDocument("https://gitlab.istic.univ-rennes1.fr/fautin/jeu-de-combat");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user