pflammarion / Game-SixQuiPrend

2 stars 0 forks source link

Dire les dernières cartes jouées par joueur #42

Closed pflammarion closed 1 year ago

Sh0lf commented 1 year ago

Added new view function: previous round cards played. How I did it: added a HBox for the middle "middlePane" that will hold the boardPane and a new VBox "playedCards" to hold the later views for previous cards.

Check updatePreviousRound for how I modify playedCards. Adding 3 children Title: playedCardsLabel Text Players: namesInOrder The Cards: a new HBox where I add all the ImageView

Changes from the old structure: middlePane = new HBox(boardPane, playedCards) I also set a minWidth for boardPane to visualize better, else it's literally next to the board and it's dirty

image