mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
[ZNR] Improved GUI for modal double faces cards (#7012)
This commit is contained in:
parent
c60bf3ccef
commit
898d271c36
4 changed files with 34 additions and 7 deletions
|
|
@ -579,7 +579,10 @@ public class MageActionCallback implements ActionCallback {
|
|||
break;
|
||||
case ALTERNATE:
|
||||
if (cardView.getAlternateName() != null) {
|
||||
if (cardView instanceof PermanentView && !cardView.isFlipCard() && !cardView.canTransform() && ((PermanentView) cardView).isCopy()) {
|
||||
if (cardView instanceof PermanentView
|
||||
&& !cardView.isFlipCard()
|
||||
&& !cardView.canTransform()
|
||||
&& ((PermanentView) cardView).isCopy()) {
|
||||
image = ImageCache.getImageOriginal(((PermanentView) cardView).getOriginal());
|
||||
} else {
|
||||
image = ImageCache.getImageOriginalAlternateName(cardView);
|
||||
|
|
|
|||
|
|
@ -819,9 +819,12 @@ public abstract class CardPanel extends MagePermanent implements MouseListener,
|
|||
this.setTemporary(null);
|
||||
}
|
||||
}
|
||||
|
||||
// switch card names for render
|
||||
String temp = this.getGameCard().getAlternateName();
|
||||
this.getGameCard().setAlternateName(this.getGameCard().getOriginalName());
|
||||
this.getGameCard().setOriginalName(temp);
|
||||
|
||||
updateArtImage();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue