mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user