deuxieme lien
This commit is contained in:
@@ -10,7 +10,6 @@ import javafx.fxml.Initializable;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
public class MenuController implements Initializable{
|
||||
@FXML
|
||||
@@ -24,9 +23,8 @@ public class MenuController implements Initializable{
|
||||
|
||||
@FXML
|
||||
public void commencerPartie(MouseEvent mouseEvent) throws IOException{
|
||||
System.out.println("Bonjouuuuur!");
|
||||
System.out.println("Passage <20> l'<27>cran de choix des joueurs");
|
||||
BorderPane pane = FXMLLoader.load(getClass().getResource("../ressources/Choix_joueur.fxml"));
|
||||
System.out.println(rootPane);
|
||||
rootPane.getChildren().setAll(pane);
|
||||
}
|
||||
|
||||
|
30
src/ihm/controller/PlayersController.java
Normal file
30
src/ihm/controller/PlayersController.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.fxml.Initializable;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.scene.layout.Pane;
|
||||
|
||||
public class PlayersController implements Initializable{
|
||||
@FXML
|
||||
private BorderPane rootPane;
|
||||
|
||||
@Override
|
||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
public void commencerJeux(MouseEvent mouseEvent) throws IOException{
|
||||
System.out.println("Lancement du jeu...");
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Plateau.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user