forked from External/mage
* GUI: meld cards improves:
* added images download for melds cards (#9660); * added switch card side button to view a meld part; * fixed NPE and other errors on card side switching; * added meld cards support in test render dialog;
This commit is contained in:
parent
6102ccee53
commit
743143acde
29 changed files with 180 additions and 42 deletions
|
|
@ -519,6 +519,13 @@ public class CardView extends SimpleCardView {
|
|||
this.alternateName = mdfCard.getRightHalfCard().getName();
|
||||
}
|
||||
|
||||
Card meldsToCard = card.getMeldsToCard();
|
||||
if (meldsToCard != null) {
|
||||
this.transformable = true; // enable GUI day/night button
|
||||
this.secondCardFace = new CardView(meldsToCard, game);
|
||||
this.alternateName = meldsToCard.getName();
|
||||
}
|
||||
|
||||
if (card instanceof Spell) {
|
||||
this.mageObjectType = MageObjectType.SPELL;
|
||||
Spell spell = (Spell) card;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue