forked from External/mage
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:
parent
ba8650b4e2
commit
6aaaa8cb46
11 changed files with 187 additions and 132 deletions
|
|
@ -45,20 +45,10 @@ public class DeckEditorPane extends MagePane {
|
|||
deckEditorPanel1.changeGUISize();
|
||||
}
|
||||
|
||||
public void show(DeckEditorMode mode, Deck deck, String name, UUID tableId, int time) {
|
||||
public void show(DeckEditorMode mode, Deck deck, String name, UUID tableId, int visibleTimer) {
|
||||
this.tableId = tableId;
|
||||
if (mode == DeckEditorMode.SIDEBOARDING
|
||||
|| mode == DeckEditorMode.LIMITED_BUILDING
|
||||
|| mode == DeckEditorMode.LIMITED_SIDEBOARD_BUILDING) {
|
||||
this.setTitle("Deck Editor - " + tableId.toString());
|
||||
} else if (mode == DeckEditorMode.VIEW_LIMITED_DECK) {
|
||||
this.setTitle("Deck Editor - Current Deck");
|
||||
} else if (deck != null) {
|
||||
this.setTitle("Deck Editor - " + deck.getName());
|
||||
} else {
|
||||
this.setTitle("Deck Editor");
|
||||
}
|
||||
this.deckEditorPanel1.showDeckEditor(mode, deck, tableId, time);
|
||||
this.setTitle(name);
|
||||
this.deckEditorPanel1.showDeckEditor(mode, deck, tableId, visibleTimer);
|
||||
this.repaint();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ public class DeckEditorPanel extends javax.swing.JPanel {
|
|||
this.deckArea.changeGUISize();
|
||||
}
|
||||
|
||||
public void showDeckEditor(DeckEditorMode mode, Deck deck, UUID tableId, int time) {
|
||||
public void showDeckEditor(DeckEditorMode mode, Deck deck, UUID tableId, int visibleTimer) {
|
||||
if (deck != null) {
|
||||
this.deck = deck;
|
||||
}
|
||||
|
|
@ -236,7 +236,7 @@ public class DeckEditorPanel extends javax.swing.JPanel {
|
|||
}
|
||||
this.deckArea.showSideboard(true);
|
||||
countdown.stop();
|
||||
this.timeout = time;
|
||||
this.timeout = visibleTimer;
|
||||
setTimeout(timeout);
|
||||
if (timeout != 0) {
|
||||
countdown.start();
|
||||
|
|
@ -278,8 +278,8 @@ public class DeckEditorPanel extends javax.swing.JPanel {
|
|||
this.cardSelector.setVisible(false);
|
||||
this.deckArea.setOrientation(/*limitedBuildingOrientation = */true);
|
||||
this.deckArea.showSideboard(true);
|
||||
this.lblDeckName.setVisible(false);
|
||||
this.txtDeckName.setVisible(false);
|
||||
this.lblDeckName.setVisible(true);
|
||||
this.txtDeckName.setVisible(true);
|
||||
this.txtTimeRemaining.setVisible(false);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue