mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
[Mobile] fix facedown splitcard showing different cardbacks when zoomed
This commit is contained in:
@@ -721,7 +721,7 @@ public class CardImageRenderer {
|
|||||||
g.drawRotatedImage(ImageCache.croppedBorderImage(image), new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, -90);
|
g.drawRotatedImage(ImageCache.croppedBorderImage(image), new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, -90);
|
||||||
} else
|
} else
|
||||||
g.drawRotatedImage(image, new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, -90);
|
g.drawRotatedImage(image, new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, -90);
|
||||||
} else if (rotateSplit && isCurrentCard && card.isSplitCard() && canshow) {
|
} else if (rotateSplit && isCurrentCard && card.isSplitCard() && canshow && !card.isFaceDown()) {
|
||||||
boolean isAftermath = card.getText().contains("Aftermath") || card.getAlternateState().getOracleText().contains("Aftermath");
|
boolean isAftermath = card.getText().contains("Aftermath") || card.getAlternateState().getOracleText().contains("Aftermath");
|
||||||
if (Forge.enableUIMask.equals("Full")) {
|
if (Forge.enableUIMask.equals("Full")) {
|
||||||
if (ImageCache.isBorderlessCardArt(image))
|
if (ImageCache.isBorderlessCardArt(image))
|
||||||
@@ -737,17 +737,32 @@ public class CardImageRenderer {
|
|||||||
} else {
|
} else {
|
||||||
if (card.isFaceDown() && ZoneType.Exile.equals(card.getZone())) {
|
if (card.isFaceDown() && ZoneType.Exile.equals(card.getZone())) {
|
||||||
if (card.isForeTold() || altState) {
|
if (card.isForeTold() || altState) {
|
||||||
if (Forge.enableUIMask.equals("Full")) {
|
if (card.isSplitCard() && rotateSplit && isCurrentCard) {
|
||||||
if (ImageCache.isBorderlessCardArt(image))
|
boolean isAftermath = card.getText().contains("Aftermath") || card.getAlternateState().getOracleText().contains("Aftermath");
|
||||||
g.drawImage(image, x, y, w, h);
|
if (Forge.enableUIMask.equals("Full")) {
|
||||||
else {
|
if (ImageCache.isBorderlessCardArt(image))
|
||||||
g.drawImage(ImageCache.getBorderImage(image.toString()), ImageCache.borderColor(image), x, y, w, h);
|
g.drawRotatedImage(image, new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, isAftermath ? 90 : -90);
|
||||||
g.drawImage(ImageCache.croppedBorderImage(image), x + radius / 2.4f-minusxy, y + radius / 2-minusxy, w * croppedArea, h * croppedArea);
|
else {
|
||||||
}
|
g.drawRotatedImage(FSkin.getBorders().get(ImageCache.getFSkinBorders(card)), new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, isAftermath ? 90 : -90);
|
||||||
} else if (Forge.enableUIMask.equals("Crop")) {
|
g.drawRotatedImage(ImageCache.croppedBorderImage(image), new_x + radius / 2-minusxy, new_y + radius / 2-minusxy, new_w * croppedArea, new_h * croppedArea, (new_x + radius / 2-minusxy) + (new_w * croppedArea) / 2, (new_y + radius / 2-minusxy) + (new_h * croppedArea) / 2, isAftermath ? 90 : -90);
|
||||||
g.drawImage(ImageCache.croppedBorderImage(image), x, y, w, h);
|
}
|
||||||
|
} else if (Forge.enableUIMask.equals("Crop")) {
|
||||||
|
g.drawRotatedImage(ImageCache.croppedBorderImage(image), new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, isAftermath ? 90 : -90);
|
||||||
|
} else
|
||||||
|
g.drawRotatedImage(image, new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, isAftermath ? 90 : -90);
|
||||||
} else {
|
} else {
|
||||||
g.drawImage(image, x, y, w, h);
|
if (Forge.enableUIMask.equals("Full")) {
|
||||||
|
if (ImageCache.isBorderlessCardArt(image))
|
||||||
|
g.drawImage(image, x, y, w, h);
|
||||||
|
else {
|
||||||
|
g.drawImage(ImageCache.getBorderImage(image.toString()), ImageCache.borderColor(image), x, y, w, h);
|
||||||
|
g.drawImage(ImageCache.croppedBorderImage(image), x + radius / 2.4f-minusxy, y + radius / 2-minusxy, w * croppedArea, h * croppedArea);
|
||||||
|
}
|
||||||
|
} else if (Forge.enableUIMask.equals("Crop")) {
|
||||||
|
g.drawImage(ImageCache.croppedBorderImage(image), x, y, w, h);
|
||||||
|
} else {
|
||||||
|
g.drawImage(image, x, y, w, h);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//show sleeves instead
|
//show sleeves instead
|
||||||
|
|||||||
Reference in New Issue
Block a user