push
This commit is contained in:
parent
0ae1d3e242
commit
0ec353891d
@ -1,16 +1,15 @@
|
|||||||
package ihm;
|
package ihm;
|
||||||
|
|
||||||
|
import javafx.scene.Parent;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
import javafx.stage.Modality;
|
import javafx.stage.Modality;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
public class PopUp {
|
public class PopUp {
|
||||||
private Scene scene;
|
private Scene scene;
|
||||||
private Stage popupwindow;
|
private Stage popupwindow;
|
||||||
private Pane pane;
|
|
||||||
|
|
||||||
public PopUp (Pane p, String titre) {
|
public PopUp (Parent p, String titre) {
|
||||||
|
|
||||||
popupwindow = new Stage();
|
popupwindow = new Stage();
|
||||||
popupwindow.initModality(Modality.APPLICATION_MODAL);
|
popupwindow.initModality(Modality.APPLICATION_MODAL);
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
package ihm.controller;
|
package ihm.controller;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.fxml.Initializable;
|
import javafx.fxml.Initializable;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
import javafx.scene.layout.Pane;
|
import javafx.scene.layout.Pane;
|
||||||
|
import main.Joueur;
|
||||||
|
|
||||||
public class AfficherCarteController implements Initializable{
|
public class AfficherCarteController implements Initializable{
|
||||||
|
|
||||||
@ -16,13 +15,13 @@ public class AfficherCarteController implements Initializable{
|
|||||||
@FXML private Label competence;
|
@FXML private Label competence;
|
||||||
@FXML private Pane root;
|
@FXML private Pane root;
|
||||||
|
|
||||||
private PlateauController plateau;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
System.out.println(root.getUserData());
|
|
||||||
//nom.setText((String) root.getUserData());
|
|
||||||
competence.setText("dfghjk");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void showInformation(Joueur j) {
|
||||||
|
//nom.setText(j.getCartePersonnage().getNom());
|
||||||
|
//competence.setText(j.getCartePersonnage().getDescription());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package ihm.controller;
|
package ihm.controller;
|
||||||
|
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
@ -20,8 +22,14 @@ public class MenuController implements Initializable{
|
|||||||
@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
|
||||||
//Image image = new Image("../ressources/img/logo.png");
|
FileInputStream input;
|
||||||
//titre.setImage(image);
|
try {
|
||||||
|
input = new FileInputStream("src\\ihm\\ressources\\img\\logo.png");
|
||||||
|
Image image = new Image(input);
|
||||||
|
titre.setImage(image);
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
|
@ -11,17 +11,14 @@ import ihm.PopUp;
|
|||||||
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.Button;
|
import javafx.scene.control.Button;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.scene.layout.BorderPane;
|
|
||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import main.Joueur;
|
import main.Joueur;
|
||||||
|
|
||||||
public class PlateauController implements Initializable {
|
public class PlateauController implements Initializable {
|
||||||
@FXML private BorderPane root;
|
|
||||||
|
|
||||||
private List<Joueur> listJoueur = new ArrayList<Joueur>();
|
private List<Joueur> listJoueur = new ArrayList<Joueur>();
|
||||||
private List<VBox> vboxJoueur = new ArrayList<VBox>();
|
private List<VBox> vboxJoueur = new ArrayList<VBox>();
|
||||||
private List<Button> btnRevelation = new ArrayList<Button>();
|
private List<Button> btnRevelation = new ArrayList<Button>();
|
||||||
@ -44,9 +41,6 @@ public class PlateauController implements Initializable {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
// initialisation des joueurs
|
|
||||||
attribuerPerso(listJoueur);
|
|
||||||
|
|
||||||
//initialisation des attributs des joueurs
|
//initialisation des attributs des joueurs
|
||||||
this.vboxJoueur.add(joueur1);
|
this.vboxJoueur.add(joueur1);
|
||||||
this.vboxJoueur.add(joueur2);
|
this.vboxJoueur.add(joueur2);
|
||||||
@ -65,13 +59,20 @@ public class PlateauController implements Initializable {
|
|||||||
btnRevelation.add((Button) enfant.getChildren().get(1));
|
btnRevelation.add((Button) enfant.getChildren().get(1));
|
||||||
}
|
}
|
||||||
//initilaisation des boutons se reveler
|
//initilaisation des boutons se reveler
|
||||||
|
int i = 0;
|
||||||
for (Button b : btnRevelation) {
|
for (Button b : btnRevelation) {
|
||||||
b.setOnAction(e -> {try {seReveler(null);} catch (IOException e1) {e1.printStackTrace();}});
|
int compteur = i;
|
||||||
|
b.setOnAction(e -> {try {seReveler(compteur);} catch (IOException e1) {e1.printStackTrace();}});
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
//initialisation des bouton carte personnage
|
//initialisation des bouton carte personnage
|
||||||
|
int j = 0;
|
||||||
for (Button b : btnCartePerso) {
|
for (Button b : btnCartePerso) {
|
||||||
b.setOnAction(e -> {try {consulterSaCarte(null);} catch (IOException e1) {e1.printStackTrace();}});
|
int compteur = j;
|
||||||
|
b.setOnAction(e -> {try {consulterSaCarte(compteur);} catch (IOException e1) {e1.printStackTrace();}});
|
||||||
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//initialisation nom personnage
|
//initialisation nom personnage
|
||||||
for (Label l : nomPerso) {
|
for (Label l : nomPerso) {
|
||||||
l.setText("???");
|
l.setText("???");
|
||||||
@ -87,10 +88,15 @@ public class PlateauController implements Initializable {
|
|||||||
*
|
*
|
||||||
* @param j : Le joueur sur lequel on a cliqué
|
* @param j : Le joueur sur lequel on a cliqué
|
||||||
*/
|
*/
|
||||||
public void seReveler(Joueur j) throws IOException {
|
public void seReveler(int numJoueur) throws IOException {
|
||||||
System.out.println("Le joueur ... se revèle");
|
System.out.println(listJoueur.get(numJoueur).getNom() + " se revele");
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Reveler_son_identite.fxml"));
|
FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/Reveler_son_identite.fxml"));
|
||||||
PopUp popup = new PopUp(pane, "reveler son identité");
|
Parent root = loader.load();
|
||||||
|
|
||||||
|
RevelationController rc = loader.getController();
|
||||||
|
rc.showInformation(listJoueur.get(numJoueur));
|
||||||
|
|
||||||
|
PopUp popup = new PopUp(root, "Consulter sa carte");
|
||||||
popup.display();
|
popup.display();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,23 +105,28 @@ public class PlateauController implements Initializable {
|
|||||||
*
|
*
|
||||||
* @param j : Le joueur sur lequel on a cliqué
|
* @param j : Le joueur sur lequel on a cliqué
|
||||||
*/
|
*/
|
||||||
public void consulterSaCarte(Joueur j) throws IOException {
|
public void consulterSaCarte(int numJoueur) throws IOException {
|
||||||
System.out.println("Le joueur ... consulte sa carte");
|
System.out.println(listJoueur.get(numJoueur).getNom() + " consulte sa carte");
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/afficher_carte_perso.fxml"));
|
FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/afficher_carte_perso.fxml"));
|
||||||
pane.setUserData("blblblb");
|
Parent root = loader.load();
|
||||||
System.out.println(pane.getUserData());
|
|
||||||
PopUp popup = new PopUp(pane, "Consulter sa carte");
|
AfficherCarteController acc = loader.getController();
|
||||||
|
acc.showInformation(listJoueur.get(numJoueur));
|
||||||
|
|
||||||
|
PopUp popup = new PopUp(root, "Consulter sa carte");
|
||||||
popup.display();
|
popup.display();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showInformation(List<Joueur> j) {
|
public void showInformation(List<Joueur> j) {
|
||||||
System.out.println("Ecriture des noms des joueurs");
|
System.out.println("\tEcriture des noms des joueurs");
|
||||||
for (int i=0; i<j.size(); i++) {
|
for (int i=0; i<j.size(); i++) {
|
||||||
nomJoueur.get(i).setText(j.get(i).getNom());
|
if (j.get(i) != null)
|
||||||
|
nomJoueur.get(i).setText(j.get(i).getNom());
|
||||||
|
else {
|
||||||
|
vboxJoueur.get(i).setVisible(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void attribuerPerso(List<Joueur> lj) {
|
|
||||||
|
|
||||||
|
listJoueur = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ 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.Parent;
|
||||||
import javafx.scene.Scene;
|
|
||||||
import javafx.scene.control.Alert;
|
import javafx.scene.control.Alert;
|
||||||
import javafx.scene.control.Alert.AlertType;
|
import javafx.scene.control.Alert.AlertType;
|
||||||
import javafx.scene.control.Button;
|
import javafx.scene.control.Button;
|
||||||
@ -19,7 +18,6 @@ import javafx.scene.control.TextField;
|
|||||||
import javafx.scene.input.MouseEvent;
|
import javafx.scene.input.MouseEvent;
|
||||||
import javafx.scene.layout.BorderPane;
|
import javafx.scene.layout.BorderPane;
|
||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.stage.Stage;
|
|
||||||
import main.Joueur;
|
import main.Joueur;
|
||||||
import main.JoueurVirtuel;
|
import main.JoueurVirtuel;
|
||||||
|
|
||||||
@ -80,6 +78,7 @@ public class PlayersController implements Initializable{
|
|||||||
@FXML
|
@FXML
|
||||||
public void commencerJeux(MouseEvent mouseEvent) throws IOException{
|
public void commencerJeux(MouseEvent mouseEvent) throws IOException{
|
||||||
//ajout des joueurs finalement selectionner
|
//ajout des joueurs finalement selectionner
|
||||||
|
int nbJoueur = 0;
|
||||||
for (HBox hb : ligne) {
|
for (HBox hb : ligne) {
|
||||||
TextField tf = (TextField) hb.getChildren().get(0);
|
TextField tf = (TextField) hb.getChildren().get(0);
|
||||||
CheckBox cb = (CheckBox) hb.getChildren().get(2);
|
CheckBox cb = (CheckBox) hb.getChildren().get(2);
|
||||||
@ -89,13 +88,13 @@ public class PlayersController implements Initializable{
|
|||||||
j = new JoueurVirtuel(tf.getText());
|
j = new JoueurVirtuel(tf.getText());
|
||||||
else
|
else
|
||||||
j = new Joueur(tf.getText());
|
j = new Joueur(tf.getText());
|
||||||
|
nbJoueur++;
|
||||||
joueur.add(j);
|
}else j = null;
|
||||||
}
|
joueur.add(j);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (joueur.size() <4) {
|
if (nbJoueur <4) {
|
||||||
Alert alert = new Alert(AlertType.WARNING, "Vous avez moins de 4 joueurs !");
|
Alert alert = new Alert(AlertType.WARNING, "Il faut au moins de 4 joueurs !");
|
||||||
alert.showAndWait();
|
alert.showAndWait();
|
||||||
}else {
|
}else {
|
||||||
System.out.println("Lancement du jeu...");
|
System.out.println("Lancement du jeu...");
|
||||||
@ -123,7 +122,7 @@ public class PlayersController implements Initializable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retire le joueur précedemnt ajouter
|
* Retire le joueur précedement ajouter
|
||||||
*
|
*
|
||||||
* @param indice : pour savoir quel bouton a été cliqué
|
* @param indice : pour savoir quel bouton a été cliqué
|
||||||
*/
|
*/
|
||||||
|
27
src/ihm/controller/RevelationController.java
Normal file
27
src/ihm/controller/RevelationController.java
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package ihm.controller;
|
||||||
|
|
||||||
|
import java.net.URL;
|
||||||
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
import javafx.fxml.Initializable;
|
||||||
|
import javafx.scene.control.Label;
|
||||||
|
import main.Joueur;
|
||||||
|
|
||||||
|
public class RevelationController implements Initializable{
|
||||||
|
|
||||||
|
@FXML private Label nomJoueur;
|
||||||
|
@FXML private Label nomPerso;
|
||||||
|
@FXML private Label factionPerso;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void showInformation(Joueur j) {
|
||||||
|
nomJoueur.setText(j.getNom());
|
||||||
|
//nomPerso.setText(j.getCartePersonnage().getNom());
|
||||||
|
//factionPerso.setText(j.getCartePersonnage().getDescription());
|
||||||
|
}
|
||||||
|
}
|
@ -11,17 +11,132 @@
|
|||||||
<?import javafx.scene.text.Font?>
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
<BorderPane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1280.0" styleClass="background" stylesheets="@style/menu.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.PlayersController">
|
<BorderPane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1280.0" styleClass="background" stylesheets="@style/menu.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.PlayersController">
|
||||||
<bottom>
|
<left>
|
||||||
<Button fx:id="btnCommencer" mnemonicParsing="false" onMouseClicked="#commencerJeux" styleClass="bouton" stylesheets="@style/menu.css" text="Commencer la partie" BorderPane.alignment="CENTER">
|
<VBox alignment="CENTER" prefHeight="688.0" prefWidth="240.0" BorderPane.alignment="CENTER">
|
||||||
<BorderPane.margin>
|
<children>
|
||||||
<Insets bottom="10.0" />
|
<HBox fx:id="hb5" alignment="CENTER" prefHeight="67.0" prefWidth="340.0" rotate="90.0">
|
||||||
</BorderPane.margin>
|
<children>
|
||||||
<font>
|
<TextField>
|
||||||
<Font size="24.0" />
|
<font>
|
||||||
</font></Button>
|
<Font size="24.0" />
|
||||||
</bottom>
|
</font>
|
||||||
<top>
|
</TextField>
|
||||||
<VBox alignment="CENTER" prefHeight="119.0" prefWidth="600.0" BorderPane.alignment="CENTER">
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="100.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<padding>
|
||||||
|
<Insets right="5.0" />
|
||||||
|
</padding>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="150.0" left="-100.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
<HBox fx:id="hb7" alignment="CENTER" rotate="90.0">
|
||||||
|
<children>
|
||||||
|
<TextField prefHeight="51.0" prefWidth="298.0">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="100.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<padding>
|
||||||
|
<Insets right="5.0" />
|
||||||
|
</padding>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets left="-100.0" top="200.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
</left>
|
||||||
|
<right>
|
||||||
|
<VBox alignment="CENTER" prefHeight="688.0" prefWidth="248.0" BorderPane.alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox fx:id="hb6" alignment="CENTER" prefHeight="100.0" prefWidth="200.0" rotate="270.0">
|
||||||
|
<children>
|
||||||
|
<TextField>
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="100.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<padding>
|
||||||
|
<Insets right="5.0" />
|
||||||
|
</padding>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="150.0" right="-100.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
<HBox fx:id="hb8" alignment="CENTER" prefHeight="100.0" prefWidth="200.0" rotate="270.0">
|
||||||
|
<children>
|
||||||
|
<TextField>
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="100.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<padding>
|
||||||
|
<Insets right="5.0" />
|
||||||
|
</padding>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets right="-100.0" top="150.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
</right>
|
||||||
|
<center>
|
||||||
|
<VBox alignment="CENTER" prefHeight="486.0" prefWidth="392.0" BorderPane.alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
<Label styleClass="titre" stylesheets="@style/menu.css" text="Entrez le nom des joueurs">
|
<Label styleClass="titre" stylesheets="@style/menu.css" text="Entrez le nom des joueurs">
|
||||||
<font>
|
<font>
|
||||||
@ -33,199 +148,129 @@
|
|||||||
<Font size="36.0" />
|
<Font size="36.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<Label styleClass="titre" stylesheets="@style/menu.css" text="Cochez la case pour que le joueur soit un joueur virtuel">
|
<Label styleClass="titre" stylesheets="@style/menu.css" text="Cochez la case pour avoir un joueur virtuel">
|
||||||
<font>
|
<font>
|
||||||
<Font size="36.0" />
|
<Font size="36.0" />
|
||||||
</font></Label>
|
</font></Label>
|
||||||
|
<Button fx:id="btnCommencer" mnemonicParsing="false" onMouseClicked="#commencerJeux" styleClass="bouton" stylesheets="@style/menu.css" text="Commencer la partie">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets top="20.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</Button>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
</center>
|
||||||
|
<top>
|
||||||
|
<HBox alignment="CENTER" prefHeight="110.0" prefWidth="1280.0" BorderPane.alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox fx:id="hb1" alignment="CENTER" rotate="180.0">
|
||||||
|
<children>
|
||||||
|
<TextField>
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="55.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<HBox fx:id="hb2" alignment="CENTER" rotate="180.0">
|
||||||
|
<children>
|
||||||
|
<TextField>
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="55.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="30.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
</top>
|
</top>
|
||||||
<left>
|
<bottom>
|
||||||
<VBox alignment="CENTER" prefHeight="559.0" prefWidth="642.0" BorderPane.alignment="CENTER">
|
<VBox alignment="CENTER" prefHeight="94.0" prefWidth="1280.0" BorderPane.alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
<HBox fx:id="hb1" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
||||||
<children>
|
<children>
|
||||||
<TextField>
|
<HBox fx:id="hb3" alignment="CENTER">
|
||||||
<font>
|
<children>
|
||||||
<Font size="24.0" />
|
<TextField prefHeight="51.0" prefWidth="298.0">
|
||||||
</font>
|
<font>
|
||||||
</TextField>
|
<Font size="24.0" />
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
</font>
|
||||||
<font>
|
</TextField>
|
||||||
<Font size="24.0" />
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="55.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
</font>
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<HBox fx:id="hb4" alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<TextField>
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="55.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<CheckBox mnemonicParsing="false">
|
||||||
|
<font>
|
||||||
|
<Font size="24.0" />
|
||||||
|
</font>
|
||||||
|
</CheckBox>
|
||||||
|
</children>
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets left="10.0" right="10.0" />
|
<Insets left="30.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
</Button>
|
</HBox>
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="hb2" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="hb3" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="hb4" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
</children>
|
||||||
</HBox>
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
</left>
|
</bottom>
|
||||||
<right>
|
|
||||||
<VBox alignment="CENTER" prefHeight="559.0" prefWidth="694.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<HBox fx:id="hb5" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="hb6" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="hb7" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox fx:id="hb8" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<TextField>
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</TextField>
|
|
||||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<CheckBox mnemonicParsing="false">
|
|
||||||
<font>
|
|
||||||
<Font size="24.0" />
|
|
||||||
</font>
|
|
||||||
</CheckBox>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
</children>
|
|
||||||
</VBox>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
</BorderPane>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<?import javafx.scene.shape.Rectangle?>
|
<?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="400.0" prefWidth="600.0" 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;">
|
<Pane layoutX="33.0" layoutY="41.0" prefHeight="325.0" prefWidth="561.0" style="-fx-border-color: blue;">
|
||||||
<children>
|
<children>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<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>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
<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>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
<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>
|
||||||
|
@ -198,5 +198,4 @@ public class Joueur {
|
|||||||
public String getNom() {
|
public String getNom() {
|
||||||
return this.nom;
|
return this.nom;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user