forked from External/mage
spjspj - Add in 'View Current Deck' option.
This commit is contained in:
parent
56ce1abb44
commit
6ab4a94bd7
10 changed files with 73 additions and 4 deletions
|
|
@ -80,6 +80,8 @@ public class DeckEditorPane extends MagePane {
|
|||
public void show(DeckEditorMode mode, Deck deck, String name, UUID tableId, int time) {
|
||||
if (mode == DeckEditorMode.SIDEBOARDING || mode == DeckEditorMode.LIMITED_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 {
|
||||
|
|
|
|||
|
|
@ -233,6 +233,24 @@ public class DeckEditorPanel extends javax.swing.JPanel {
|
|||
this.deckArea.showSideboard(true);
|
||||
this.txtTimeRemaining.setVisible(false);
|
||||
break;
|
||||
case VIEW_LIMITED_DECK:
|
||||
this.btnExit.setVisible(true);
|
||||
this.btnSave.setVisible(true);
|
||||
this.btnAddLand.setVisible(false);
|
||||
this.btnGenDeck.setVisible(false);
|
||||
this.btnImport.setVisible(false);
|
||||
this.btnLoad.setVisible(false);
|
||||
this.btnNew.setVisible(false);
|
||||
this.btnSubmit.setVisible(false);
|
||||
this.btnSubmitTimer.setVisible(false);
|
||||
this.cardSelector.loadCards(this.bigCard);
|
||||
this.cardSelector.setVisible(false);
|
||||
this.deckArea.setOrientation(/*limitedBuildingOrientation = */true);
|
||||
this.deckArea.showSideboard(true);
|
||||
this.lblDeckName.setVisible(false);
|
||||
this.txtDeckName.setVisible(false);
|
||||
this.txtTimeRemaining.setVisible(false);
|
||||
break;
|
||||
}
|
||||
init();
|
||||
this.deckArea.setDeckEditorMode(mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue