changement des chemins pour executable
This commit is contained in:
parent
98a43e0363
commit
eb5aacc8ce
@ -51,7 +51,7 @@ public class JouerSonTour1Controller implements Initializable{
|
||||
|
||||
ImageView imageView;
|
||||
try {
|
||||
imageView = FXMLLoader.load(getClass().getResource("../ressources/img/des.fxml"));
|
||||
imageView = FXMLLoader.load(getClass().getResource("/ihm/ressources/img/des.fxml"));
|
||||
imageView.setViewport(new Rectangle2D(OFFSET_X, OFFSET_Y, WIDTH, HEIGHT));
|
||||
|
||||
imageView.fitWidthProperty().bind(d6.widthProperty());
|
||||
@ -83,7 +83,7 @@ public class JouerSonTour1Controller implements Initializable{
|
||||
|
||||
@FXML
|
||||
public void lancerDes(MouseEvent mouseEvent) throws IOException, InterruptedException{
|
||||
final URL fxmlURL = getClass().getResource("../ressources/Jouer_tour(2)carte_lieux.fxml");
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/Jouer_tour(2)carte_lieux.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane root = fxmlLoader.load();
|
||||
|
@ -27,7 +27,7 @@ public class JouerSonTour2Controller implements Initializable{
|
||||
|
||||
@FXML
|
||||
public void ignorerEtape(MouseEvent mouseEvent) throws IOException{
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(3)attaquer.fxml"));
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/Jouer_tour(3)attaquer.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ public class JouerSonTour5Controller implements Initializable{
|
||||
@FXML
|
||||
public void equipementVole(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour6.fxml"));
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouerSonTour6.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
@ -21,14 +21,14 @@ public class JouerSonTour6Controller implements Initializable{
|
||||
@FXML
|
||||
public void piocherVision(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_piocher_vision.fxml"));
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_vision.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
@FXML
|
||||
public void piocherTenebre(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml"));
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ public class JouerSonTourDonnerVisionController implements Initializable{
|
||||
@FXML
|
||||
public void attaquer(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_recevoir_blessure.fxml"));
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_recevoir_blessure.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public class MenuJoueurController implements Initializable{
|
||||
@FXML
|
||||
public void changeZoneToScrollPaneJoueur(MouseEvent me) throws IOException {
|
||||
|
||||
AnchorPane bp = FXMLLoader.load(getClass().getResource("../ressources/ScrollPaneJoueur.fxml"));
|
||||
AnchorPane bp = FXMLLoader.load(getClass().getResource("/ihm/ressources/ScrollPaneJoueur.fxml"));
|
||||
ImageView iv = ((ImageView)me.getSource());
|
||||
Parent p = iv.getParent().getParent();
|
||||
AnchorPane ap = (AnchorPane)p;
|
||||
|
@ -20,7 +20,7 @@ public class PiocherVisionController implements Initializable{
|
||||
@FXML
|
||||
public void voirCarte(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_donner_vision.fxml"));
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ public class PlateauController implements Initializable {
|
||||
*/
|
||||
public void consulterSaCarte(int numJoueur) throws IOException {
|
||||
System.out.println(listJoueur.get(numJoueur).getNom() + " consulte sa carte");
|
||||
final URL fxmlURL = getClass().getResource("../ressources/afficher_carte_perso.fxml");
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/afficher_carte_perso.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Parent root = fxmlLoader.load();
|
||||
|
@ -159,7 +159,7 @@ public class PlateauControllerTest implements Initializable {
|
||||
|
||||
public boolean choisir(Joueur j) throws IOException {
|
||||
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/choisirBoolean.fxml"));
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("/ihm/ressources/choisirBoolean.fxml"));
|
||||
Parent root = loader.load();
|
||||
|
||||
PopUpBoolean popup = new PopUpBoolean(root, "Consulter sa carte");
|
||||
|
@ -27,7 +27,7 @@ public class ScrollPaneJoueurController implements Initializable{
|
||||
@FXML
|
||||
public void changeZoneJoueurToMenuJoueur(MouseEvent me) throws IOException {
|
||||
|
||||
BorderPane bp = FXMLLoader.load(getClass().getResource("../ressources/MenuJoueur.fxml"));
|
||||
BorderPane bp = FXMLLoader.load(getClass().getResource("/ihm/ressources/MenuJoueur.fxml"));
|
||||
ImageView iv = ((ImageView)me.getSource());
|
||||
Parent p = iv.getParent().getParent().getParent().getParent();
|
||||
AnchorPane ap = (AnchorPane)p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user