revert stash
This commit is contained in:
parent
34e3690ba9
commit
e7ca21a33e
@ -17,7 +17,7 @@ public class Main extends Application {
|
|||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception {
|
public void start(Stage primaryStage) throws Exception {
|
||||||
|
|
||||||
final URL fxmlURL = getClass().getResource("ressources/Menu.fxml"); // "ressources/Jouer_tour(1)lancer_des.fxml"
|
final URL fxmlURL = getClass().getResource("ressources/Jouer_tour(2c2)choisir_joueur.fxml"); // "ressources/Jouer_tour(1)lancer_des.fxml"
|
||||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||||
Pane root = fxmlLoader.load();
|
Pane root = fxmlLoader.load();
|
||||||
@ -30,7 +30,7 @@ public class Main extends Application {
|
|||||||
public void handle(WindowEvent arg0) {
|
public void handle(WindowEvent arg0) {
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
primaryStage.setMaximized(true);
|
primaryStage.setMaximized(true);
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,62 @@
|
|||||||
package ihm.controller;
|
package ihm.controller;
|
||||||
|
|
||||||
|
import java.io.InputStream;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
import carte.CarteEquipement;
|
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.fxml.Initializable;
|
import javafx.fxml.Initializable;
|
||||||
|
import javafx.scene.image.Image;
|
||||||
|
import javafx.scene.image.ImageView;
|
||||||
import javafx.scene.layout.GridPane;
|
import javafx.scene.layout.GridPane;
|
||||||
import main.Joueur;
|
import carte.CarteEquipement;
|
||||||
|
|
||||||
public class ChoisirEquipement implements Initializable{
|
public class ChoisirEquipement implements Initializable{
|
||||||
@FXML private GridPane equipement;
|
@FXML private GridPane grilleEquipement;
|
||||||
|
|
||||||
private Joueur joueurVole;
|
private List<CarteEquipement> equipements = new ArrayList<CarteEquipement>();
|
||||||
private CarteEquipement equipementVole;
|
private CarteEquipement equipementSelected;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
// TODO Auto-generated method stub
|
for (int i=0; i<equipements.size(); i++) {
|
||||||
|
ImageView carte = (ImageView) grilleEquipement.getChildren().get(i);
|
||||||
|
|
||||||
|
/*InputStream input = getClass().getResourceAsStream("/ihm/ressources/img/" + "nomcarte" + ".png");
|
||||||
|
Image image = new Image(input);
|
||||||
|
carte.setImage(image);*/
|
||||||
|
|
||||||
|
int numEquipement = i;
|
||||||
|
carte.setOnMouseClicked(e -> {
|
||||||
|
equipementSelected = equipements.get(numEquipement);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CarteEquipement> getEquipements() {
|
||||||
|
return equipements;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEquipements(List<CarteEquipement> equipements) {
|
||||||
|
this.equipements = equipements;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CarteEquipement getEquipementSelected() {
|
||||||
|
return equipementSelected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEquipementSelected(CarteEquipement equipementSelected) {
|
||||||
|
this.equipementSelected = equipementSelected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GridPane getGrilleEquipement() {
|
||||||
|
return grilleEquipement;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrilleEquipement(GridPane grilleEquipement) {
|
||||||
|
this.grilleEquipement = grilleEquipement;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,13 +20,15 @@ public class ChoisirJoueur implements Initializable{
|
|||||||
for (int i=0; i<joueurHaut.getChildren().size(); i++) {
|
for (int i=0; i<joueurHaut.getChildren().size(); i++) {
|
||||||
int numJoueur = i;
|
int numJoueur = i;
|
||||||
joueurHaut.getChildren().get(i).setOnMouseClicked(e -> {
|
joueurHaut.getChildren().get(i).setOnMouseClicked(e -> {
|
||||||
|
System.out.println("Vous avez choisi le joueur " + (numJoueur+1));
|
||||||
this.joueurSelected = numJoueur;
|
this.joueurSelected = numJoueur;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<joueurBas.getChildren().size(); i++) {
|
for (int i=0; i<joueurBas.getChildren().size(); i++) {
|
||||||
int numJoueur = i;
|
int numJoueur = i+4;
|
||||||
joueurHaut.getChildren().get(i).setOnMouseClicked(e -> {
|
joueurBas.getChildren().get(i).setOnMouseClicked(e -> {
|
||||||
|
System.out.println("Vous avez choisi le joueur " + (numJoueur+1));
|
||||||
this.joueurSelected = numJoueur;
|
this.joueurSelected = numJoueur;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
public class JouerSonTour2Controller extends ChoisirBoolean{
|
|
||||||
public void initButtons () {
|
|
||||||
super.getOuiButton().setText("utiliser.capaciter.lieux");
|
|
||||||
super.getNonButton().setText("sauter.etape");
|
|
||||||
super.getTitre().setText("description.capacite.carte.lieux");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
public class JouerSonTour2c1Controller extends ChoisirBoolean{
|
|
||||||
public void initButtons () {
|
|
||||||
super.getOuiButton().setText("Attaquer !");
|
|
||||||
super.getNonButton().setText("se.soigner");
|
|
||||||
super.getTitre().setText("attaquer.ou.soigner");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
public class JouerSonTour3Controller extends ChoisirBoolean{
|
|
||||||
public void initButtons () {
|
|
||||||
super.getOuiButton().setText("Attaquer !");
|
|
||||||
super.getNonButton().setText("Ne pas attaquer");
|
|
||||||
super.getTitre().setText("Voulez-vous attaquer un joueur ?");
|
|
||||||
}
|
|
||||||
}
|
|
@ -15,6 +15,6 @@ public class JouerSonTour4Controller extends LancerDes{
|
|||||||
@Override
|
@Override
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
super.initialize(arg0, arg1);
|
super.initialize(arg0, arg1);
|
||||||
defenseur.setText(j.getNom());
|
//defenseur.setText(j.getNom());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,36 +14,44 @@ public class LancerDes implements Initializable{
|
|||||||
@FXML private Button btnStop;
|
@FXML private Button btnStop;
|
||||||
@FXML private Button btnLancer;
|
@FXML private Button btnLancer;
|
||||||
|
|
||||||
|
private int[] valeurD6 = {1, 2, 3, 4, 5, 6};
|
||||||
|
private int[] valeurD4 = {1, 2, 3, 4};
|
||||||
|
|
||||||
private int resultatD6;
|
private int resultatD6;
|
||||||
private int resultatD4;
|
private int resultatD4;
|
||||||
|
|
||||||
|
private boolean lancement = true;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
btnStop.setVisible(false);
|
btnStop.setVisible(false);
|
||||||
|
|
||||||
btnLancer.setOnAction(e -> {
|
btnLancer.setOnAction(e -> {
|
||||||
lancement();
|
try {
|
||||||
btnLancer.setVisible(false);
|
btnLancer.setVisible(false);
|
||||||
btnStop.setVisible(true);
|
btnStop.setVisible(true);
|
||||||
|
lancement();
|
||||||
|
} catch (InterruptedException e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
btnStop.setOnAction(e -> {
|
btnStop.setOnAction(e -> {
|
||||||
//à remplir avec les valeurs donné par le gestionnaire de jeux
|
//à remplir avec les valeurs donné par le gestionnaire de jeux
|
||||||
|
lancement = false;
|
||||||
d6.setText(Integer.toString(resultatD6));
|
d6.setText(Integer.toString(resultatD6));
|
||||||
d4.setText(Integer.toString(resultatD4));
|
d4.setText(Integer.toString(resultatD4));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void lancement() {
|
public void lancement() throws InterruptedException {
|
||||||
/*for (int i=1; i<7; i++) {
|
/*int i=0;
|
||||||
Thread.sleep(500);
|
while (lancement) {
|
||||||
d6.setText(Integer.toString(i));
|
d6.setText(Integer.toString(valeurD6[i%6]));
|
||||||
}
|
d4.setText(Integer.toString(valeurD4[i%4]));
|
||||||
|
i++;
|
||||||
for (int i=1; i<5; i++) {
|
//Thread.sleep(500);
|
||||||
Thread.sleep(500);
|
|
||||||
d4.setText(Integer.toString(i));
|
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.scene.image.Image?>
|
|
||||||
<?import javafx.scene.image.ImageView?>
|
|
||||||
|
|
||||||
|
|
||||||
<ImageView fitHeight="189.0" fitWidth="379.0" preserveRatio="true" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
|
||||||
<image>
|
|
||||||
<Image url="@img/dice.sprite.png" />
|
|
||||||
</image>
|
|
||||||
</ImageView>
|
|
@ -8,7 +8,7 @@
|
|||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
<?import javafx.scene.text.Font?>
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.JouerSonTour2Controller">
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirBoolean">
|
||||||
<children>
|
<children>
|
||||||
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
<Label layoutX="58.0" layoutY="14.0" text="%voler.equipement.joueur" />
|
<Label layoutX="58.0" layoutY="14.0" text="%voler.equipement.joueur" />
|
||||||
<ScrollPane layoutX="28.0" layoutY="40.0" prefHeight="128.0" prefWidth="200.0">
|
<ScrollPane layoutX="28.0" layoutY="38.0" prefHeight="128.0" prefWidth="200.0">
|
||||||
<content>
|
<content>
|
||||||
<GridPane fx:id="equipement">
|
<GridPane fx:id="grilleEquipement">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" />
|
<ColumnConstraints hgrow="SOMETIMES" />
|
||||||
<ColumnConstraints hgrow="SOMETIMES" />
|
<ColumnConstraints hgrow="SOMETIMES" />
|
||||||
@ -25,6 +25,8 @@
|
|||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
<rowConstraints>
|
<rowConstraints>
|
||||||
<RowConstraints vgrow="SOMETIMES" />
|
<RowConstraints vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints vgrow="SOMETIMES" />
|
||||||
<RowConstraints vgrow="SOMETIMES" />
|
<RowConstraints vgrow="SOMETIMES" />
|
||||||
<RowConstraints vgrow="SOMETIMES" />
|
<RowConstraints vgrow="SOMETIMES" />
|
||||||
<RowConstraints vgrow="SOMETIMES" />
|
<RowConstraints vgrow="SOMETIMES" />
|
||||||
@ -34,6 +36,14 @@
|
|||||||
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" />
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" />
|
||||||
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="2" />
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="2" />
|
||||||
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="3" />
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="3" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.rowIndex="1" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.rowIndex="2" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
||||||
|
<ImageView fitHeight="60.0" fitWidth="43.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
</content>
|
</content>
|
||||||
|
@ -1,15 +1,44 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.image.Image?>
|
||||||
|
<?import javafx.scene.image.ImageView?>
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
|
||||||
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.PiocherCarte">
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
|
||||||
<children>
|
<children>
|
||||||
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
<Label layoutX="88.0" layoutY="82.0" text="%piocher.carte" />
|
<Label layoutX="88.0" layoutY="40.0" text="%piocher.carte" />
|
||||||
|
<Button fx:id="lumiere" layoutX="20.0" layoutY="77.0" mnemonicParsing="false" style="-fx-border-width: 0;">
|
||||||
|
<graphic>
|
||||||
|
<ImageView fitHeight="77.0" fitWidth="55.0" pickOnBounds="true" preserveRatio="true">
|
||||||
|
<image>
|
||||||
|
<Image url="@img/dosCartesLumière.jpg" />
|
||||||
|
</image>
|
||||||
|
</ImageView>
|
||||||
|
</graphic>
|
||||||
|
</Button>
|
||||||
|
<Button fx:id="vision" layoutX="93.0" layoutY="77.0" mnemonicParsing="false" style="-fx-border-width: 0;">
|
||||||
|
<graphic>
|
||||||
|
<ImageView fitHeight="77.0" fitWidth="55.0" pickOnBounds="true" preserveRatio="true">
|
||||||
|
<image>
|
||||||
|
<Image url="@img/dosCartesVision.jpg" />
|
||||||
|
</image>
|
||||||
|
</ImageView>
|
||||||
|
</graphic>
|
||||||
|
</Button>
|
||||||
|
<Button fx:id="tenebre" layoutX="166.0" layoutY="77.0" mnemonicParsing="false" style="-fx-border-width: 0;">
|
||||||
|
<graphic>
|
||||||
|
<ImageView fitHeight="77.0" fitWidth="55.0" pickOnBounds="true" preserveRatio="true">
|
||||||
|
<image>
|
||||||
|
<Image url="@img/dosCartesNoires.jpg" />
|
||||||
|
</image>
|
||||||
|
</ImageView>
|
||||||
|
</graphic>
|
||||||
|
</Button>
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
</children>
|
</children>
|
||||||
|
@ -1,41 +1,84 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.control.Label?>
|
||||||
<?import javafx.scene.image.ImageView?>
|
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
<?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.text.Font?>
|
||||||
|
|
||||||
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirJoueur">
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
|
||||||
<children>
|
<children>
|
||||||
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
<VBox alignment="CENTER" prefHeight="165.0" prefWidth="255.0">
|
<HBox fx:id="joueurHaut" layoutX="4.0" layoutY="14.0">
|
||||||
<children>
|
<children>
|
||||||
<HBox alignment="CENTER" prefHeight="184.0" prefWidth="600.0">
|
<Button mnemonicParsing="false" text="%joueur1">
|
||||||
<children>
|
<font>
|
||||||
<VBox alignment="CENTER" prefHeight="178.0" prefWidth="599.0">
|
<Font size="10.0" />
|
||||||
<children>
|
</font>
|
||||||
<Label prefHeight="17.0" prefWidth="69.0" text="%voir.carte" />
|
</Button>
|
||||||
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
<Button mnemonicParsing="false" text="%joueur2">
|
||||||
<children>
|
<font>
|
||||||
<ImageView fitHeight="114.0" fitWidth="82.0" pickOnBounds="true" preserveRatio="true" />
|
<Font size="10.0" />
|
||||||
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
</font>
|
||||||
<children>
|
<HBox.margin>
|
||||||
<Label prefHeight="27.0" prefWidth="97.0" text="*Effet de la carte" textAlignment="CENTER" />
|
<Insets left="2.0" />
|
||||||
</children>
|
</HBox.margin>
|
||||||
</HBox>
|
</Button>
|
||||||
</children>
|
<Button mnemonicParsing="false" text="%joueur3">
|
||||||
</HBox>
|
<font>
|
||||||
<Label prefHeight="17.0" prefWidth="136.0" text="%jouer.a.qui.donner.carte" />
|
<Font size="10.0" />
|
||||||
</children>
|
</font>
|
||||||
</VBox>
|
<HBox.margin>
|
||||||
</children>
|
<Insets left="2.0" />
|
||||||
</HBox>
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur4">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</HBox>
|
||||||
|
<HBox fx:id="joueurBas" layoutX="4.0" layoutY="139.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur5">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur6">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur7">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur8">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<Label fx:id="titre" layoutX="9.0" layoutY="82.0" text="Choisir un joueur à qui donner la carte vision" />
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
</children>
|
</children>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<?import javafx.scene.layout.AnchorPane?>
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.JouerSonTour2c1Controller">
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirBoolean">
|
||||||
<children>
|
<children>
|
||||||
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
|
@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.HBox?>
|
||||||
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirJoueur">
|
||||||
|
<children>
|
||||||
|
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
|
<children>
|
||||||
|
<HBox fx:id="joueurHaut" layoutX="4.0" layoutY="14.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur1">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur2">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur3">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur4">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<HBox fx:id="joueurBas" layoutX="4.0" layoutY="139.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur5">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur6">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur7">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur8">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<Label fx:id="titre" layoutX="50.0" layoutY="82.0" text="Choisir un joueur à attaquer !" />
|
||||||
|
</children>
|
||||||
|
</Pane>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
@ -4,7 +4,7 @@
|
|||||||
<?import javafx.scene.control.Label?>
|
<?import javafx.scene.control.Label?>
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
|
||||||
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.JouerSonTour3Controller">
|
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirBoolean">
|
||||||
<children>
|
<children>
|
||||||
<Button fx:id="nonButton" layoutX="136.0" layoutY="128.0" mnemonicParsing="false" text="Ne pas attaquer" />
|
<Button fx:id="nonButton" layoutX="136.0" layoutY="128.0" mnemonicParsing="false" text="Ne pas attaquer" />
|
||||||
<Label fx:id="titre" layoutX="40.0" layoutY="31.0" text="Voulez-vous attaquer un joueur ?" />
|
<Label fx:id="titre" layoutX="40.0" layoutY="31.0" text="Voulez-vous attaquer un joueur ?" />
|
||||||
|
@ -1,85 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.Insets?>
|
|
||||||
<?import javafx.scene.control.Button?>
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
|
||||||
<?import javafx.scene.layout.HBox?>
|
|
||||||
<?import javafx.scene.layout.Pane?>
|
|
||||||
<?import javafx.scene.text.Font?>
|
|
||||||
|
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirJoueur">
|
|
||||||
<children>
|
|
||||||
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
|
||||||
<children>
|
|
||||||
<HBox fx:id="joueurHaut" layoutX="4.0" layoutY="14.0">
|
|
||||||
<children>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur1">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur2">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="2.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur3">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="2.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur4">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="2.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="joueurBas" layoutX="4.0" layoutY="139.0">
|
|
||||||
<children>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur5">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="2.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur6">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="2.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur7">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="2.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="%joueur8">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
</Button>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<Label fx:id="titre" layoutX="50.0" layoutY="82.0" text="Choisir un joueur à attaquer !" />
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.scene.image.Image?>
|
|
||||||
<?import javafx.scene.image.ImageView?>
|
|
||||||
|
|
||||||
|
|
||||||
<ImageView fitHeight="33.0" fitWidth="200.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
|
||||||
<image>
|
|
||||||
<Image url="@dice.sprite.png" />
|
|
||||||
</image>
|
|
||||||
</ImageView>
|
|
Binary file not shown.
Before Width: | Height: | Size: 53 KiB |
Loading…
x
Reference in New Issue
Block a user