Traduction suite
This commit is contained in:
@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@ -21,7 +22,10 @@ public class JouerSonTour5Controller implements Initializable{
|
||||
@FXML
|
||||
public void equipementVole(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouerSonTour6.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouerSonTour6.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@ -21,15 +22,23 @@ public class JouerSonTour6Controller implements Initializable{
|
||||
@FXML
|
||||
public void piocherVision(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_vision.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_vision.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
@FXML
|
||||
public void piocherTenebre(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml"));
|
||||
rootPane.getChildren().setAll(pane);
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@ -20,7 +21,11 @@ public class JouerSonTourDonnerVisionController implements Initializable{
|
||||
@FXML
|
||||
public void attaquer(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_recevoir_blessure.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_recevoir_blessure.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@ -12,6 +13,7 @@ import javafx.scene.control.SplitPane;
|
||||
import javafx.scene.image.ImageView;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.scene.layout.Pane;
|
||||
|
||||
public class MenuJoueurController implements Initializable{
|
||||
|
||||
@ -23,7 +25,10 @@ public class MenuJoueurController implements Initializable{
|
||||
@FXML
|
||||
public void changeZoneToScrollPaneJoueur(MouseEvent me) throws IOException {
|
||||
|
||||
AnchorPane bp = FXMLLoader.load(getClass().getResource("/ihm/ressources/ScrollPaneJoueur.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/ScrollPaneJoueur.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
AnchorPane bp = fxmlLoader.load();
|
||||
ImageView iv = ((ImageView)me.getSource());
|
||||
Parent p = iv.getParent().getParent();
|
||||
AnchorPane ap = (AnchorPane)p;
|
||||
|
@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@ -20,7 +21,11 @@ public class PiocherVisionController implements Initializable{
|
||||
@FXML
|
||||
public void voirCarte(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml"));
|
||||
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);
|
||||
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import ihm.PopUpBoolean;
|
||||
@ -38,7 +39,11 @@ public class PlateauControllerTest implements Initializable {
|
||||
AnchorPane ap = getAnchorPaneJoueur(i);
|
||||
Pane p;
|
||||
try {
|
||||
p = FXMLLoader.load(getClass().getResource("/ihm/ressources/MenuJoueur.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/MenuJoueur.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
|
||||
p = fxmlLoader.load();
|
||||
if(i > 1 && i < 3) {
|
||||
rotateContent(p, 90);
|
||||
}
|
||||
@ -159,8 +164,11 @@ public class PlateauControllerTest implements Initializable {
|
||||
|
||||
public boolean choisir(Joueur j) throws IOException {
|
||||
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("/ihm/ressources/choisirBoolean.fxml"));
|
||||
Parent root = loader.load();
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/choisirBoolean.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
|
||||
Parent root = fxmlLoader.load();
|
||||
|
||||
PopUpBoolean popup = new PopUpBoolean(root, "Consulter sa carte");
|
||||
return popup.display();
|
||||
|
@ -2,6 +2,7 @@ package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
@ -27,7 +28,10 @@ public class ScrollPaneJoueurController implements Initializable{
|
||||
@FXML
|
||||
public void changeZoneJoueurToMenuJoueur(MouseEvent me) throws IOException {
|
||||
|
||||
BorderPane bp = FXMLLoader.load(getClass().getResource("/ihm/ressources/MenuJoueur.fxml"));
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/MenuJoueur.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRENCH);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
BorderPane bp = fxmlLoader.load();
|
||||
ImageView iv = ((ImageView)me.getSource());
|
||||
Parent p = iv.getParent().getParent().getParent().getParent();
|
||||
AnchorPane ap = (AnchorPane)p;
|
||||
|
Reference in New Issue
Block a user