GUI: improved main and battlefield menus (related to #11533):

- main menu: better naming for deck editor;
- battlefield menu: added deck view for computer players, better naming;
- network: improved experimental connection;
This commit is contained in:
Oleg Agafonov 2023-12-09 15:20:29 +04:00
parent ba8650b4e2
commit 6aaaa8cb46
11 changed files with 187 additions and 132 deletions

View file

@ -78,6 +78,17 @@ public class MatchPlayer implements Serializable {
return deck;
}
public Deck getDeckForViewer() {
if (this.deck == null) {
return null;
}
// Tiny Leaders uses deck name for game, also must hide real deck name from other players
Deck viewerDeck = this.deck.copy();
viewerDeck.setName(this.getName());
return viewerDeck;
}
public void submitDeck(Deck deck) {
this.deck = deck;
this.doneSideboarding = true;