ajout des noms des personnages sur la barre de blessures

This commit is contained in:
Bastien NOEL 2020-05-15 12:19:27 +02:00
parent bee7c7894d
commit b8d0dde99d
2 changed files with 74 additions and 0 deletions

View File

@ -72,6 +72,8 @@ public class ChoisirJoueur implements Initializable {
GestionnaireJeu.notifyPlateau(); GestionnaireJeu.notifyPlateau();
this.joueurSelected = jihm; this.joueurSelected = jihm;
}); });
System.out.println("b.gettext = " + b.getText());
System.out.println("jihm.getnom = " + jihm.getNom());
b.setText(jihm.getNom()); b.setText(jihm.getNom());
i++; i++;
} }

View File

@ -420,6 +420,78 @@
<Insets bottom="-50.0" top="-45.0" /> <Insets bottom="-50.0" top="-45.0" />
</VBox.margin> </VBox.margin>
</Button> </Button>
<GridPane>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<VBox.margin>
<Insets bottom="-40.0" />
</VBox.margin>
<children>
<StackPane prefHeight="150.0" prefWidth="200.0" GridPane.columnIndex="8">
<children>
<Label styleClass="text" text="Allie" />
</children>
</StackPane>
<StackPane prefHeight="150.0" prefWidth="200.0" GridPane.columnIndex="10">
<children>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0">
<children>
<Label styleClass="text" text="Bob" />
<Label layoutX="38.0" layoutY="16.0" styleClass="text" text="Emi" />
</children>
</VBox>
</children>
</StackPane>
<StackPane prefHeight="150.0" prefWidth="200.0" GridPane.columnIndex="11">
<children>
<Label styleClass="text" text="Charles" />
</children>
</StackPane>
<StackPane prefHeight="150.0" prefWidth="200.0" GridPane.columnIndex="12">
<children>
<Label styleClass="text" text="Franklin" />
</children>
</StackPane>
<StackPane prefHeight="150.0" prefWidth="200.0" GridPane.columnIndex="13">
<children>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0">
<children>
<Label styleClass="text" text="Vampire" />
<Label layoutX="27.0" layoutY="16.0" styleClass="text" text="Daniel" />
</children>
</VBox>
</children>
</StackPane>
<StackPane prefHeight="150.0" prefWidth="200.0" GridPane.columnIndex="14">
<children>
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0">
<children>
<Label styleClass="text" text="Loup-Garou" />
<Label layoutX="38.0" layoutY="16.0" styleClass="text" text="George" />
</children>
</VBox>
</children>
</StackPane>
</children>
</GridPane>
<GridPane fx:id="gridPaneVie" alignment="CENTER" hgap="5.0" vgap="5.0"> <GridPane fx:id="gridPaneVie" alignment="CENTER" hgap="5.0" vgap="5.0">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" /> <ColumnConstraints hgrow="SOMETIMES" />