restore commit ok

This commit is contained in:
JunkJumper 2020-04-24 18:18:48 +02:00
parent 76c1652fd9
commit 3b590540ac
27 changed files with 649 additions and 642 deletions

View File

@ -2,26 +2,17 @@ package ihm;
import javafx.application.Application; import javafx.application.Application;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane; import javafx.scene.layout.Pane;
import javafx.stage.Stage; import javafx.stage.Stage;
import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle;
public class Main extends Application { public class Main extends Application {
@Override @Override
public void start(Stage primaryStage) throws Exception { public void start(Stage primaryStage) throws Exception {
System.out.println("Lancement de l'application"); System.out.println("Lancement de l'application");
final URL fxmlURL = getClass().getResource("ressources/Menu.fxml"); Pane root = FXMLLoader.load(getClass().getResource("ressources/Menu.fxml")); // "ressources/Jouer_tour(1)lancer_des.fxml"
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Parent root = fxmlLoader.load();
primaryStage.setTitle("Shadow Hunters"); primaryStage.setTitle("Shadow Hunters");
primaryStage.setScene(new Scene(root)); primaryStage.setScene(new Scene(root));
@ -34,7 +25,7 @@ public class Main extends Application {
String filepath = "src//ihm//ressources//musique//The_Red_Fox_Tavern.wav"; // lien vers la musique : String filepath = "src//ihm//ressources//musique//The_Red_Fox_Tavern.wav"; // lien vers la musique :
// https://www.youtube.com/watch?v=LBpKUIyOHdo // https://www.youtube.com/watch?v=LBpKUIyOHdo
Musique musiqueObjet = new Musique(); Musique musiqueObjet = new Musique();
musiqueObjet.playMusique(filepath); //musiqueObjet.playMusique(filepath);
launch(args); launch(args);
} }

View File

@ -2,7 +2,6 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.Random; import java.util.Random;
import java.util.ResourceBundle; import java.util.ResourceBundle;
@ -10,7 +9,6 @@ import carte.CarteLieu;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.control.Label; import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseEvent;
import javafx.scene.layout.BorderPane; import javafx.scene.layout.BorderPane;
@ -42,11 +40,7 @@ public class JouerSonTour1Controller implements Initializable{
Thread.sleep(1000); Thread.sleep(1000);
final URL fxmlURL = getClass().getResource("../ressources/Jouer_tour(2)carte_lieux.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(2)carte_lieux.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); rootPane.getChildren().setAll(pane);
} }

View File

@ -2,7 +2,6 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import carte.CarteLieu; import carte.CarteLieu;
@ -27,11 +26,7 @@ public class JouerSonTour2Controller implements Initializable{
@FXML @FXML
public void ignorerEtape(MouseEvent mouseEvent) throws IOException{ public void ignorerEtape(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("../ressources/Jouer_tour(3)attaquer.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(3)attaquer.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); rootPane.getChildren().setAll(pane);
} }

View File

@ -2,7 +2,6 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javafx.fxml.FXML; import javafx.fxml.FXML;
@ -22,10 +21,7 @@ public class JouerSonTour5Controller implements Initializable{
@FXML @FXML
public void equipementVole(MouseEvent mouseEvent) throws IOException{ public void equipementVole(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("../ressources/jouerSonTour6.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour6.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); rootPane.getChildren().setAll(pane);
} }

View File

@ -2,7 +2,6 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javafx.fxml.FXML; import javafx.fxml.FXML;
@ -22,20 +21,14 @@ public class JouerSonTour6Controller implements Initializable{
@FXML @FXML
public void piocherVision(MouseEvent mouseEvent) throws IOException{ public void piocherVision(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("../ressources/jouer_Son_Tour_piocher_vision.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_piocher_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); rootPane.getChildren().setAll(pane);
} }
@FXML @FXML
public void piocherTenebre(MouseEvent mouseEvent) throws IOException{ public void piocherTenebre(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("../ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_piocher_lum_et_ten.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); rootPane.getChildren().setAll(pane);
} }

View File

@ -2,7 +2,6 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javafx.fxml.FXML; import javafx.fxml.FXML;
@ -21,10 +20,7 @@ public class JouerSonTourDonnerVisionController implements Initializable{
@FXML @FXML
public void attaquer(MouseEvent mouseEvent) throws IOException{ public void attaquer(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("../ressources/jouer_Son_Tour_recevoir_blessure.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_recevoir_blessure.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); rootPane.getChildren().setAll(pane);
} }

View File

@ -4,7 +4,6 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javafx.fxml.FXML; import javafx.fxml.FXML;
@ -15,7 +14,6 @@ import javafx.scene.image.Image;
import javafx.scene.image.ImageView; import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage; import javafx.stage.Stage;
import javafx.scene.Node; import javafx.scene.Node;
@ -38,11 +36,8 @@ public class MenuController implements Initializable{
@FXML @FXML
public void commencerPartie(MouseEvent mouseEvent) throws IOException{ public void commencerPartie(MouseEvent mouseEvent) throws IOException{
System.out.println("Passage à l'écran de choix des joueurs"); System.out.println("Passage <20> l'<27>cran de choix des joueurs");
final URL fxmlURL = getClass().getResource("../ressources/Choix_joueur.fxml"); AnchorPane pane = FXMLLoader.load(getClass().getResource("../ressources/Choix_joueur.fxml"));
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
AnchorPane pane = fxmlLoader.load();
Scene scene = new Scene(pane); Scene scene = new Scene(pane);
Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow();
appStage.setScene(scene); appStage.setScene(scene);

View File

@ -2,7 +2,6 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import javafx.fxml.FXML; import javafx.fxml.FXML;
@ -21,10 +20,7 @@ public class PiocherVisionController implements Initializable{
@FXML @FXML
public void voirCarte(MouseEvent mouseEvent) throws IOException{ public void voirCarte(MouseEvent mouseEvent) throws IOException{
final URL fxmlURL = getClass().getResource("../ressources/jouer_Son_Tour_donner_vision.fxml"); Pane pane = FXMLLoader.load(getClass().getResource("../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); rootPane.getChildren().setAll(pane);
} }

View File

@ -3,7 +3,10 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.*; import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import ihm.PopUp; import ihm.PopUp;
import ihm.PopUpBoolean; import ihm.PopUpBoolean;
@ -94,13 +97,10 @@ public class PlateauController implements Initializable {
*/ */
public void seReveler(int numJoueur) throws IOException { public void seReveler(int numJoueur) throws IOException {
System.out.println(listJoueur.get(numJoueur).getNom() + " se revele"); System.out.println(listJoueur.get(numJoueur).getNom() + " se revele");
final URL fxmlURL = getClass().getResource("../ressources/Reveler_son_identite.fxml"); FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/Reveler_son_identite.fxml"));
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE); Parent root = loader.load();
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Parent root = fxmlLoader.load();
RevelationController rc = loader.getController();
RevelationController rc = fxmlLoader.getController();
rc.showInformation(listJoueur.get(numJoueur)); rc.showInformation(listJoueur.get(numJoueur));
PopUp popup = new PopUp(root, "Consulter sa carte"); PopUp popup = new PopUp(root, "Consulter sa carte");
@ -108,11 +108,9 @@ public class PlateauController implements Initializable {
} }
public boolean choisir(Joueur j) throws IOException { public boolean choisir(Joueur j) throws IOException {
final URL fxmlURL = getClass().getResource("../ressources/choisirBoolean.fxml");
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Parent root = fxmlLoader.load();
FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/choisirBoolean.fxml"));
Parent root = loader.load();
PopUpBoolean popup = new PopUpBoolean(root, "Consulter sa carte"); PopUpBoolean popup = new PopUpBoolean(root, "Consulter sa carte");
return popup.display(); return popup.display();
@ -127,13 +125,10 @@ public class PlateauController implements Initializable {
*/ */
public void consulterSaCarte(int numJoueur) throws IOException { public void consulterSaCarte(int numJoueur) throws IOException {
System.out.println(listJoueur.get(numJoueur).getNom() + " consulte sa carte"); System.out.println(listJoueur.get(numJoueur).getNom() + " consulte sa carte");
final URL fxmlURL = getClass().getResource("../ressources/afficher_carte_perso.fxml"); FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/afficher_carte_perso.fxml"));
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE); Parent root = loader.load();
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
Parent root = fxmlLoader.load();
AfficherCarteController acc = loader.getController();
AfficherCarteController acc = fxmlLoader.getController();
acc.showInformation(listJoueur.get(numJoueur)); acc.showInformation(listJoueur.get(numJoueur));
PopUp popup = new PopUp(root, "Consulter sa carte"); PopUp popup = new PopUp(root, "Consulter sa carte");

View File

@ -2,7 +2,11 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.*; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import ihm.Couple; import ihm.Couple;
import javafx.fxml.FXML; import javafx.fxml.FXML;
@ -111,14 +115,12 @@ public class PlayersController implements Initializable{
} }
// Creer une configuration // Creer une configuration
//View.applyConfiguration(new Configuration(joueurs, nbJoueursV, nbJoueursH)); //View.applyConfiguration(new Configuration(joueurs, nbJoueursV, nbJoueursH));
final URL fxmlURL = getClass().getResource("../ressources/Plateau.fxml");
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRENCH); FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/Plateau.fxml"));
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle); Parent root = loader.load();
Parent root = fxmlLoader.load();
PlateauController pc = loader.getController();
PlateauController pc = fxmlLoader.getController();
GestionnaireJeu.setPlateauController(pc); GestionnaireJeu.setPlateauController(pc);
GestionnaireJeu.setConfiguration(new Configuration(this.joueurs)); GestionnaireJeu.setConfiguration(new Configuration(this.joueurs));
Map<Integer, Joueur> map = GestionnaireJeu.getJoueursMap(new Configuration(this.joueurs)); Map<Integer, Joueur> map = GestionnaireJeu.getJoueursMap(new Configuration(this.joueurs));

View File

@ -13,9 +13,9 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Button> </Button>
<Button layoutX="387.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="195.0" text="%reveler.et.soigner" /> <Button layoutX="387.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="195.0" text="Se révéler et soigner mes lessures" />
<Button layoutX="628.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="171.0" text="%rien.faire" /> <Button layoutX="628.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="171.0" text="Ne rien faire" />
<Label layoutX="414.0" layoutY="147.0" prefHeight="89.0" prefWidth="249.0" text="%effet.carte"> <Label layoutX="414.0" layoutY="147.0" prefHeight="89.0" prefWidth="249.0" text="Effet carte">
<font> <font>
<Font size="52.0" /> <Font size="52.0" />
</font> </font>

View File

@ -13,9 +13,9 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Button> </Button>
<Button layoutX="387.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="195.0" text="%reveler.et.soigner" /> <Button layoutX="387.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="195.0" text="Se révéler et soigner mes lessures" />
<Button layoutX="628.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="171.0" text="%rien.faire" /> <Button layoutX="628.0" layoutY="302.0" mnemonicParsing="false" prefHeight="155.0" prefWidth="171.0" text="Ne rien faire" />
<Label layoutX="414.0" layoutY="147.0" prefHeight="89.0" prefWidth="249.0" text="%effet.carte"> <Label layoutX="414.0" layoutY="147.0" prefHeight="89.0" prefWidth="249.0" text="Effet carte">
<font> <font>
<Font size="52.0" /> <Font size="52.0" />
</font> </font>

View File

@ -21,12 +21,12 @@
<Font size="23.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
<Label layoutX="524.0" layoutY="134.0" prefHeight="105.0" prefWidth="254.0" text="%effet.carte"> <Label layoutX="524.0" layoutY="134.0" prefHeight="105.0" prefWidth="254.0" text="Effet carte">
<font> <font>
<Font size="37.0" /> <Font size="37.0" />
</font> </font>
</Label> </Label>
<Label layoutX="438.0" layoutY="306.0" prefHeight="115.0" prefWidth="385.0" text="%choisir.joueur.soigner" wrapText="true"> <Label layoutX="438.0" layoutY="306.0" prefHeight="115.0" prefWidth="385.0" text="Choisissez un joueur que vous voulez soigner" wrapText="true">
<font> <font>
<Font size="35.0" /> <Font size="35.0" />
</font> </font>

View File

@ -8,7 +8,7 @@
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1"> <Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<Label layoutX="137.0" layoutY="100.0" prefHeight="46.0" prefWidth="362.0" text="%joueur1.soigne.joueur2"> <Label layoutX="137.0" layoutY="100.0" prefHeight="46.0" prefWidth="362.0" text="Joueur 1 soigne Joueur 2">
<font> <font>
<Font size="29.0" /> <Font size="29.0" />
</font> </font>
@ -18,6 +18,6 @@
<Font size="47.0" /> <Font size="47.0" />
</font> </font>
</Button> </Button>
<Button layoutX="243.0" layoutY="313.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="116.0" text="%lancer.de.des" /> <Button layoutX="243.0" layoutY="313.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="116.0" text="Lancer les dès" />
</children> </children>
</Pane> </Pane>

View File

@ -20,12 +20,12 @@
<Font size="23.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
<Label layoutX="524.0" layoutY="134.0" prefHeight="105.0" prefWidth="254.0" text="%effet.carte"> <Label layoutX="524.0" layoutY="134.0" prefHeight="105.0" prefWidth="254.0" text="Effet carte">
<font> <font>
<Font size="37.0" /> <Font size="37.0" />
</font> </font>
</Label> </Label>
<Label layoutX="438.0" layoutY="306.0" prefHeight="115.0" prefWidth="385.0" text="%choisr.joueur" wrapText="true"> <Label layoutX="438.0" layoutY="306.0" prefHeight="115.0" prefWidth="385.0" text="Choisissez un joueur" wrapText="true">
<font> <font>
<Font size="35.0" /> <Font size="35.0" />
</font> </font>

View File

@ -45,7 +45,7 @@
</Rectangle> </Rectangle>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0">
<children> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%effet.carte" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Effet de la carte" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets bottom="55.0" /> <Insets bottom="55.0" />
</VBox.margin> </VBox.margin>
@ -53,7 +53,7 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Text> </Text>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%choisir.joueur.infliger.blessures" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Choisissez un joueur à qui infliger 2 blessures" textAlignment="CENTER">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>

View File

@ -45,7 +45,7 @@
</Rectangle> </Rectangle>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0">
<children> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%effet.carte" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Effet de la carte" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets bottom="55.0" /> <Insets bottom="55.0" />
</VBox.margin> </VBox.margin>
@ -53,7 +53,7 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Text> </Text>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%choisir.joueur.infliger.blessures" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Choisissez un joueur à qui infliger 2 blessures" textAlignment="CENTER">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>

View File

@ -44,7 +44,7 @@
</Polygon> </Polygon>
</children> </children>
</HBox> </HBox>
<Button mnemonicParsing="false" prefHeight="45.0" prefWidth="135.0" text="%lancer.de.des"> <Button mnemonicParsing="false" prefHeight="45.0" prefWidth="135.0" text="Lancer les dés">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>

View File

@ -47,7 +47,7 @@
</Rectangle> </Rectangle>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0">
<children> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%effet.carte" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Effet de la carte" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets bottom="30.0" top="50.0" /> <Insets bottom="30.0" top="50.0" />
</VBox.margin> </VBox.margin>
@ -55,7 +55,7 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Text> </Text>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement.a.donner" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Choisissez la carte équipement que vous allez donner" textAlignment="CENTER">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -75,7 +75,7 @@
<Insets bottom="55.0" /> <Insets bottom="55.0" />
</VBox.margin> </VBox.margin>
</HBox> </HBox>
<Text layoutX="10.0" layoutY="187.0" strokeType="OUTSIDE" strokeWidth="0.0" text="%joueur.a.qui.donner.carte.equipement" textAlignment="CENTER"> <Text layoutX="10.0" layoutY="187.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Choisissez un joueur à qui donner cette carte équipement" textAlignment="CENTER">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>

View File

@ -14,7 +14,7 @@
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#c6c6c6" height="298.0" stroke="BLACK" strokeType="INSIDE" width="188.0" /> <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#c6c6c6" height="298.0" stroke="BLACK" strokeType="INSIDE" width="188.0" />
<VBox alignment="CENTER" prefHeight="351.0" prefWidth="293.0"> <VBox alignment="CENTER" prefHeight="351.0" prefWidth="293.0">
<children> <children>
<Label text="%effet.carte"> <Label text="Effet de la carte">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -31,7 +31,7 @@
</Rectangle> </Rectangle>
</children> </children>
</HBox> </HBox>
<Button mnemonicParsing="false" prefHeight="45.0" prefWidth="135.0" text="%lancer.de.des"> <Button mnemonicParsing="false" prefHeight="45.0" prefWidth="135.0" text="Lancer les dés">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>

View File

@ -18,7 +18,7 @@
</Rectangle> </Rectangle>
<VBox alignment="CENTER" prefHeight="533.0" prefWidth="753.0"> <VBox alignment="CENTER" prefHeight="533.0" prefWidth="753.0">
<children> <children>
<Label text="%effet.carte"> <Label text="Effet de la carte">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -28,12 +28,12 @@
</Label> </Label>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="338.0"> <HBox alignment="CENTER" prefHeight="100.0" prefWidth="338.0">
<children> <children>
<Button mnemonicParsing="false" prefHeight="48.0" prefWidth="333.0" text="%reveler.et.soigner"> <Button mnemonicParsing="false" prefHeight="48.0" prefWidth="333.0" text="Se révéler et soigner ses blessures">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Button> </Button>
<Button layoutX="89.0" layoutY="38.0" mnemonicParsing="false" prefHeight="45.0" prefWidth="289.0" text="%rien.faire"> <Button layoutX="89.0" layoutY="38.0" mnemonicParsing="false" prefHeight="45.0" prefWidth="289.0" text="Ne rien faire">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>

View File

@ -32,7 +32,7 @@
</Rectangle> </Rectangle>
</children> </children>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -53,7 +53,7 @@
</Rectangle> </Rectangle>
</children> </children>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -80,7 +80,7 @@
<Insets right="20.0" /> <Insets right="20.0" />
</VBox.margin> </VBox.margin>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -97,7 +97,7 @@
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#d8dbdd" height="80.0" layoutX="126.0" layoutY="10.0" stroke="BLACK" strokeType="INSIDE" width="58.0" /> <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#d8dbdd" height="80.0" layoutX="126.0" layoutY="10.0" stroke="BLACK" strokeType="INSIDE" width="58.0" />
</children> </children>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -115,7 +115,7 @@
</Rectangle> </Rectangle>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="148.0">
<children> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%effet.carte" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Effet de la carte" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets bottom="55.0" /> <Insets bottom="55.0" />
</VBox.margin> </VBox.margin>
@ -123,7 +123,7 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Text> </Text>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%choisir.equipement.a.voler" textAlignment="CENTER"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Choisissez un équipement à voler" textAlignment="CENTER">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -152,7 +152,7 @@
</Rectangle> </Rectangle>
</children> </children>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -173,7 +173,7 @@
</Rectangle> </Rectangle>
</children> </children>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -197,7 +197,7 @@
<Insets right="20.0" /> <Insets right="20.0" />
</VBox.margin> </VBox.margin>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>
@ -214,7 +214,7 @@
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#d8dbdd" height="80.0" layoutX="126.0" layoutY="10.0" stroke="BLACK" strokeType="INSIDE" width="58.0" /> <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#d8dbdd" height="80.0" layoutX="126.0" layoutY="10.0" stroke="BLACK" strokeType="INSIDE" width="58.0" />
</children> </children>
</HBox> </HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%carte.equipement"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Cartes équipements">
<font> <font>
<Font size="13.0" /> <Font size="13.0" />
</font> </font>

View File

@ -16,7 +16,7 @@
<Insets top="-250.0" /> <Insets top="-250.0" />
</VBox.margin> </VBox.margin>
</ImageView> </ImageView>
<Button mnemonicParsing="false" onMouseClicked="#commencerPartie" prefHeight="51.0" prefWidth="102.0" styleClass="bouton" text="%jouer"> <Button mnemonicParsing="false" onMouseClicked="#commencerPartie" prefHeight="51.0" prefWidth="102.0" styleClass="bouton" text="Jouer">
<font> <font>
<Font size="24.0" /> <Font size="24.0" />
</font> </font>
@ -24,7 +24,7 @@
<Insets top="150.0" /> <Insets top="150.0" />
</VBox.margin> </VBox.margin>
</Button> </Button>
<Button mnemonicParsing="false" onMouseClicked="#afficherRegle" prefHeight="59.0" prefWidth="106.0" styleClass="bouton" text="%regles"> <Button mnemonicParsing="false" onMouseClicked="#afficherRegle" prefHeight="59.0" prefWidth="106.0" styleClass="bouton" text="Regles">
<font> <font>
<Font size="24.0" /> <Font size="24.0" />
</font> </font>

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.HBox?> <?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?> <?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1"> <Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="480.0" prefWidth="640.0" stylesheets="@style/popUp.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.RevelationController">
<children> <children>
<Pane layoutX="33.0" layoutY="41.0" prefHeight="325.0" prefWidth="561.0" style="-fx-border-color: blue;"> <HBox alignment="CENTER" prefHeight="480.0" prefWidth="640.0">
<children> <children>
<VBox alignment="CENTER" layoutX="199.0" layoutY="101.0" prefHeight="151.0" prefWidth="333.0" spacing="5.0" style="-fx-background-color: blue;"> <ImageView fitHeight="326.0" fitWidth="233.5" pickOnBounds="true" preserveRatio="true">
<HBox.margin>
<Insets right="20.0" />
</HBox.margin>
</ImageView>
<VBox alignment="CENTER" prefHeight="151.0" prefWidth="333.0" spacing="5.0">
<children> <children>
<HBox prefHeight="36.0" prefWidth="334.0"> <HBox prefHeight="36.0" prefWidth="334.0">
<children> <children>
<Label prefHeight="35.0" prefWidth="75.0" text="Joueur x " textFill="WHITE"> <Label fx:id="nomJoueur" prefHeight="35.0" prefWidth="75.0" text="Joueur x " textFill="WHITE">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Label> </Label>
<Label prefHeight="34.0" prefWidth="154.0" text="%reveler.identite" textFill="WHITE"> <Label prefHeight="34.0" prefWidth="154.0" text="révèle son identité!" textFill="WHITE">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -29,12 +35,12 @@
</HBox> </HBox>
<HBox prefHeight="36.0" prefWidth="334.0"> <HBox prefHeight="36.0" prefWidth="334.0">
<children> <children>
<Label prefHeight="35.0" prefWidth="55.0" text="%c.est" textFill="WHITE"> <Label prefHeight="35.0" prefWidth="55.0" text="C'est" textFill="WHITE">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Label> </Label>
<Label prefHeight="34.0" prefWidth="182.0" text="*nom de personnage*" textFill="WHITE"> <Label fx:id="nomPerso" prefHeight="34.0" prefWidth="182.0" text="*nom de personnage*" textFill="WHITE">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -43,12 +49,12 @@
</HBox> </HBox>
<HBox prefHeight="36.0" prefWidth="334.0"> <HBox prefHeight="36.0" prefWidth="334.0">
<children> <children>
<Label prefHeight="35.0" prefWidth="75.0" text="%faction" textFill="WHITE"> <Label prefHeight="35.0" prefWidth="75.0" text="Faction : " textFill="WHITE">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Label> </Label>
<Label prefHeight="34.0" prefWidth="233.0" text="*insérer le nom de la faction*" textFill="WHITE"> <Label fx:id="factionPerso" prefHeight="34.0" prefWidth="233.0" text="*insérer le nom de la faction*" textFill="WHITE">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -57,8 +63,7 @@
</HBox> </HBox>
</children> </children>
</VBox> </VBox>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="205.0" layoutX="35.0" layoutY="60.0" stroke="BLACK" strokeType="INSIDE" width="130.0" />
</children> </children>
</Pane> </HBox>
</children> </children>
</Pane> </Pane>

View File

@ -25,7 +25,7 @@
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Label> </Label>
<Label text="%utiliser.capacite"> <Label text="utilise sa capacité.">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
@ -34,7 +34,7 @@
</HBox> </HBox>
<HBox alignment="CENTER" prefHeight="54.0" prefWidth="331.0"> <HBox alignment="CENTER" prefHeight="54.0" prefWidth="331.0">
<children> <children>
<Label prefHeight="27.0" prefWidth="76.0" text="%effet"> <Label prefHeight="27.0" prefWidth="76.0" text="Effet :">
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>