Skip to content

Commit

Permalink
minor improvement in currentPlayerView
Browse files Browse the repository at this point in the history
  • Loading branch information
davi-bart committed Feb 17, 2024
1 parent e6eeeac commit 160005f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/it/unibo/view/player/CurrentPlayerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public void draw() {
buttonsBox.getChildren().add(getEndTurnButton());
buttonsBox.getChildren().add(getRollButton());
buttonsBox.getChildren().add(getBuyCardButton());
buttonsBox.getChildren().add(new Label(controller.getCurrentPlayerName()));

final HBox dieImages = new HBox();
dieImages.setSpacing(2);
dieImages.getChildren().add(roll1);
dieImages.getChildren().add(roll2);

info.getChildren().add(new Label("Current player: " + controller.getCurrentPlayerName()));
info.getChildren().add(buttonsBox);
info.getChildren().add(dieImages);
super.getChildren().add(info);
Expand Down

0 comments on commit 160005f

Please sign in to comment.