TestAddingCard
This commit is contained in:
@ -10,7 +10,6 @@ import main.GestionnaireJeu;
|
||||
|
||||
public class ChoisirBoolean implements Initializable {
|
||||
|
||||
|
||||
@FXML private Button ouiButton;
|
||||
@FXML private Button nonButton;
|
||||
|
||||
@ -22,19 +21,15 @@ public class ChoisirBoolean implements Initializable {
|
||||
|
||||
this.result = true;
|
||||
GestionnaireJeu.notifyPlateau();
|
||||
|
||||
});
|
||||
|
||||
nonButton.setOnAction(x -> {
|
||||
|
||||
this.result = false;
|
||||
GestionnaireJeu.notifyPlateau();
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public boolean getResult() {
|
||||
return this.result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -21,11 +21,11 @@ public class PiocherVisionController implements Initializable{
|
||||
@FXML
|
||||
public void voirCarte(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user