- Making transform cards work as plane/region art in Planar Conquest (mobile Forge).

- Currently will show the cards untransformed on the plane selection screen and transformed on the multiverse/region screen.
This commit is contained in:
Agetian
2018-04-27 10:46:48 +03:00
parent d74c6a2e21
commit bc701fecb3
6 changed files with 29 additions and 3 deletions

View File

@@ -122,6 +122,11 @@ public class GuiMobile implements IGuiBase {
return CardRenderer.getCardArt(card);
}
@Override
public ISkinImage getCardArt(final PaperCard card, final boolean backFace) {
return CardRenderer.getCardArt(card, backFace);
}
@Override
public ISkinImage createLayeredImage(final FSkinProp background, final String overlayFilename, final float opacity) {
return new FBufferedImage(background.getWidth(), background.getHeight(), opacity) {

View File

@@ -107,8 +107,12 @@ public class CardRenderer {
//extract card art from the given card
public static FImageComplex getCardArt(IPaperCard pc) {
return getCardArt(pc, false);
}
public static FImageComplex getCardArt(IPaperCard pc, boolean backFace) {
CardType type = pc.getRules().getType();
return getCardArt(pc.getImageKey(false), pc.getRules().getSplitType() == CardSplitType.Split, type.isPlane() || type.isPhenomenon(),pc.getRules().getOracleText().contains("Aftermath"));
return getCardArt(pc.getImageKey(backFace), pc.getRules().getSplitType() == CardSplitType.Split, type.isPlane() || type.isPhenomenon(),pc.getRules().getOracleText().contains("Aftermath"));
}
public static FImageComplex getCardArt(CardView card) {