Lancement de la fenêtre du launceur
Problématique avec le fxml. Mauvaise version il semblerait ? Fichier à refaire.
This commit is contained in:
parent
9ced943c0a
commit
bf2960f58e
2
pom.xml
2
pom.xml
@ -21,7 +21,7 @@
|
||||
<properties>
|
||||
<lwjgl.version>3.2.3</lwjgl.version>
|
||||
<lwjgl.natives>natives-windows</lwjgl.natives>
|
||||
<javafx.version>16</javafx.version>
|
||||
<javafx.version>11</javafx.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
@ -9,21 +9,26 @@
|
||||
|
||||
package launcher;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Group;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.shape.Circle;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.fxml.*;
|
||||
|
||||
public class Launcher extends Application {
|
||||
|
||||
Parent root = FXMLLoader.load("ui/main.fxml");
|
||||
Scene main = new Scene()
|
||||
|
||||
public void start(Stage primaryStage) throws Exception {
|
||||
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");
|
||||
|
||||
primaryStage.setScene(main);
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,7 +45,6 @@
|
||||
<children>
|
||||
<ImageView accessibleText="Logo" fitHeight="240.0" fitWidth="158.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@../../../../../Pictures/Avatars/modern.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
<VBox alignment="BOTTOM_CENTER" prefHeight="263.0" prefWidth="158.0">
|
||||
@ -69,7 +68,6 @@
|
||||
<children>
|
||||
<ImageView fitHeight="172.0" fitWidth="211.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@assets/ryu.png" />
|
||||
</image>
|
||||
<viewport>
|
||||
<Rectangle2D />
|
||||
@ -81,7 +79,6 @@
|
||||
<children>
|
||||
<ImageView fitHeight="200.0" fitWidth="233.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@assets/gratis-png-luchador-callejero-iii-tercer-ataque-ken-masters-ryu-luchador-callejero-ii-el-guerrero-del-mundo.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</children>
|
||||
|
Loading…
x
Reference in New Issue
Block a user