push
This commit is contained in:
parent
0ae1d3e242
commit
0ec353891d
@ -1,16 +1,15 @@
|
||||
package ihm;
|
||||
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Modality;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
public class PopUp {
|
||||
private Scene scene;
|
||||
private Stage popupwindow;
|
||||
private Pane pane;
|
||||
|
||||
public PopUp (Pane p, String titre) {
|
||||
public PopUp (Parent p, String titre) {
|
||||
|
||||
popupwindow = new Stage();
|
||||
popupwindow.initModality(Modality.APPLICATION_MODAL);
|
||||
|
@ -1,14 +1,13 @@
|
||||
package ihm.controller;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.fxml.Initializable;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.Pane;
|
||||
import main.Joueur;
|
||||
|
||||
public class AfficherCarteController implements Initializable{
|
||||
|
||||
@ -16,13 +15,13 @@ public class AfficherCarteController implements Initializable{
|
||||
@FXML private Label competence;
|
||||
@FXML private Pane root;
|
||||
|
||||
private PlateauController plateau;
|
||||
|
||||
@Override
|
||||
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;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
@ -20,8 +22,14 @@ public class MenuController implements Initializable{
|
||||
@Override
|
||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||
// TODO Auto-generated method stub
|
||||
//Image image = new Image("../ressources/img/logo.png");
|
||||
//titre.setImage(image);
|
||||
FileInputStream input;
|
||||
try {
|
||||
input = new FileInputStream("src\\ihm\\ressources\\img\\logo.png");
|
||||
Image image = new Image(input);
|
||||
titre.setImage(image);
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@FXML
|
||||
|
@ -11,17 +11,14 @@ import ihm.PopUp;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.fxml.Initializable;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
import main.Joueur;
|
||||
|
||||
public class PlateauController implements Initializable {
|
||||
@FXML private BorderPane root;
|
||||
|
||||
private List<Joueur> listJoueur = new ArrayList<Joueur>();
|
||||
private List<VBox> vboxJoueur = new ArrayList<VBox>();
|
||||
private List<Button> btnRevelation = new ArrayList<Button>();
|
||||
@ -44,9 +41,6 @@ public class PlateauController implements Initializable {
|
||||
*/
|
||||
@Override
|
||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||
// initialisation des joueurs
|
||||
attribuerPerso(listJoueur);
|
||||
|
||||
//initialisation des attributs des joueurs
|
||||
this.vboxJoueur.add(joueur1);
|
||||
this.vboxJoueur.add(joueur2);
|
||||
@ -65,13 +59,20 @@ public class PlateauController implements Initializable {
|
||||
btnRevelation.add((Button) enfant.getChildren().get(1));
|
||||
}
|
||||
//initilaisation des boutons se reveler
|
||||
int i = 0;
|
||||
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
|
||||
int j = 0;
|
||||
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
|
||||
for (Label l : nomPerso) {
|
||||
l.setText("???");
|
||||
@ -87,10 +88,15 @@ public class PlateauController implements Initializable {
|
||||
*
|
||||
* @param j : Le joueur sur lequel on a cliqué
|
||||
*/
|
||||
public void seReveler(Joueur j) throws IOException {
|
||||
System.out.println("Le joueur ... se revèle");
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Reveler_son_identite.fxml"));
|
||||
PopUp popup = new PopUp(pane, "reveler son identité");
|
||||
public void seReveler(int numJoueur) throws IOException {
|
||||
System.out.println(listJoueur.get(numJoueur).getNom() + " se revele");
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/Reveler_son_identite.fxml"));
|
||||
Parent root = loader.load();
|
||||
|
||||
RevelationController rc = loader.getController();
|
||||
rc.showInformation(listJoueur.get(numJoueur));
|
||||
|
||||
PopUp popup = new PopUp(root, "Consulter sa carte");
|
||||
popup.display();
|
||||
}
|
||||
|
||||
@ -99,23 +105,28 @@ public class PlateauController implements Initializable {
|
||||
*
|
||||
* @param j : Le joueur sur lequel on a cliqué
|
||||
*/
|
||||
public void consulterSaCarte(Joueur j) throws IOException {
|
||||
System.out.println("Le joueur ... consulte sa carte");
|
||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/afficher_carte_perso.fxml"));
|
||||
pane.setUserData("blblblb");
|
||||
System.out.println(pane.getUserData());
|
||||
PopUp popup = new PopUp(pane, "Consulter sa carte");
|
||||
public void consulterSaCarte(int numJoueur) throws IOException {
|
||||
System.out.println(listJoueur.get(numJoueur).getNom() + " consulte sa carte");
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/afficher_carte_perso.fxml"));
|
||||
Parent root = loader.load();
|
||||
|
||||
AfficherCarteController acc = loader.getController();
|
||||
acc.showInformation(listJoueur.get(numJoueur));
|
||||
|
||||
PopUp popup = new PopUp(root, "Consulter sa carte");
|
||||
popup.display();
|
||||
}
|
||||
|
||||
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++) {
|
||||
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.Initializable;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.Alert.AlertType;
|
||||
import javafx.scene.control.Button;
|
||||
@ -19,7 +18,6 @@ import javafx.scene.control.TextField;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.stage.Stage;
|
||||
import main.Joueur;
|
||||
import main.JoueurVirtuel;
|
||||
|
||||
@ -80,6 +78,7 @@ public class PlayersController implements Initializable{
|
||||
@FXML
|
||||
public void commencerJeux(MouseEvent mouseEvent) throws IOException{
|
||||
//ajout des joueurs finalement selectionner
|
||||
int nbJoueur = 0;
|
||||
for (HBox hb : ligne) {
|
||||
TextField tf = (TextField) hb.getChildren().get(0);
|
||||
CheckBox cb = (CheckBox) hb.getChildren().get(2);
|
||||
@ -89,13 +88,13 @@ public class PlayersController implements Initializable{
|
||||
j = new JoueurVirtuel(tf.getText());
|
||||
else
|
||||
j = new Joueur(tf.getText());
|
||||
|
||||
nbJoueur++;
|
||||
}else j = null;
|
||||
joueur.add(j);
|
||||
}
|
||||
}
|
||||
|
||||
if (joueur.size() <4) {
|
||||
Alert alert = new Alert(AlertType.WARNING, "Vous avez moins de 4 joueurs !");
|
||||
if (nbJoueur <4) {
|
||||
Alert alert = new Alert(AlertType.WARNING, "Il faut au moins de 4 joueurs !");
|
||||
alert.showAndWait();
|
||||
}else {
|
||||
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é
|
||||
*/
|
||||
|
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?>
|
||||
|
||||
<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>
|
||||
<Button fx:id="btnCommencer" mnemonicParsing="false" onMouseClicked="#commencerJeux" styleClass="bouton" stylesheets="@style/menu.css" text="Commencer la partie" BorderPane.alignment="CENTER">
|
||||
<BorderPane.margin>
|
||||
<Insets bottom="10.0" />
|
||||
</BorderPane.margin>
|
||||
<left>
|
||||
<VBox alignment="CENTER" prefHeight="688.0" prefWidth="240.0" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
<HBox fx:id="hb5" alignment="CENTER" prefHeight="67.0" prefWidth="340.0" rotate="90.0">
|
||||
<children>
|
||||
<TextField>
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font></Button>
|
||||
</bottom>
|
||||
<top>
|
||||
<VBox alignment="CENTER" prefHeight="119.0" prefWidth="600.0" BorderPane.alignment="CENTER">
|
||||
</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" 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>
|
||||
<Label styleClass="titre" stylesheets="@style/menu.css" text="Entrez le nom des joueurs">
|
||||
<font>
|
||||
@ -33,24 +148,87 @@
|
||||
<Font size="36.0" />
|
||||
</font>
|
||||
</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 size="36.0" />
|
||||
</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>
|
||||
</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>
|
||||
<left>
|
||||
<VBox alignment="CENTER" prefHeight="559.0" prefWidth="642.0" BorderPane.alignment="CENTER">
|
||||
<bottom>
|
||||
<VBox alignment="CENTER" prefHeight="94.0" prefWidth="1280.0" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
<HBox fx:id="hb1" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
||||
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
||||
<children>
|
||||
<TextField>
|
||||
<HBox fx:id="hb3" alignment="CENTER">
|
||||
<children>
|
||||
<TextField prefHeight="51.0" prefWidth="298.0">
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
</TextField>
|
||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="55.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
@ -65,14 +243,14 @@
|
||||
</CheckBox>
|
||||
</children>
|
||||
</HBox>
|
||||
<HBox fx:id="hb2" alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
||||
<HBox fx:id="hb4" alignment="CENTER">
|
||||
<children>
|
||||
<TextField>
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
</TextField>
|
||||
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||
<Button mnemonicParsing="false" prefHeight="55.0" prefWidth="55.0" styleClass="bouton" stylesheets="@style/menu.css" text="+">
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
@ -86,146 +264,13 @@
|
||||
</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" />
|
||||
<Insets left="30.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>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
</left>
|
||||
<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>
|
||||
</bottom>
|
||||
</BorderPane>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<?import javafx.scene.shape.Rectangle?>
|
||||
<?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>
|
||||
<Pane layoutX="33.0" layoutY="41.0" prefHeight="325.0" prefWidth="561.0" style="-fx-border-color: blue;">
|
||||
<children>
|
||||
@ -15,7 +15,7 @@
|
||||
<children>
|
||||
<HBox prefHeight="36.0" prefWidth="334.0">
|
||||
<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 size="18.0" />
|
||||
</font>
|
||||
@ -34,7 +34,7 @@
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</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 size="18.0" />
|
||||
</font>
|
||||
@ -48,7 +48,7 @@
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</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 size="18.0" />
|
||||
</font>
|
||||
|
@ -198,5 +198,4 @@ public class Joueur {
|
||||
public String getNom() {
|
||||
return this.nom;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user