enable option to zoom view rotated battle cards

This commit is contained in:
Anthony Calosa
2023-04-17 21:01:43 +08:00
parent 9857084217
commit b0cde1cd2e
3 changed files with 4 additions and 4 deletions

View File

@@ -802,7 +802,7 @@ public class CardImageRenderer {
croppedArea = 0.975f;
minusxy = 0.135f * radius;
}
if (rotatePlane && (card.getCurrentState().isPhenomenon() || card.getCurrentState().isPlane())) {
if (rotatePlane && (card.getCurrentState().isPhenomenon() || card.getCurrentState().isPlane() || (card.getCurrentState().isBattle() && !altState) || (card.getAlternateState() != null && card.getAlternateState().isBattle() && altState))) {
if (Forge.enableUIMask.equals("Full")) {
if (image.toString().contains(".fullborder."))
g.drawCardRoundRect(image, new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, -90);

View File

@@ -637,7 +637,7 @@ public class CardRenderer {
g.drawCardImage(image, crack_overlay, x, y, w, h, card.wasDestroyed(), magnify ? false : card.getDamage() > 0);
} else {
if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_ROTATE_PLANE_OR_PHENOMENON)
&& (card.getCurrentState().isPhenomenon() || card.getCurrentState().isPlane()) && rotate) {
&& (card.getCurrentState().isPhenomenon() || card.getCurrentState().isPlane() || (card.getCurrentState().isBattle() && !showAltState) || (card.getAlternateState() != null && card.getAlternateState().isBattle() && showAltState)) && rotate) {
if (Forge.enableUIMask.equals("Full")) {
if (image.toString().contains(".fullborder."))
g.drawCardRoundRect(image, x, y, w, h, x + w / 2, y + h / 2, -90);

View File

@@ -1020,7 +1020,7 @@ lblMinimizeScreenLock=Minimize on Screen Lock
lblOrderGraveyard=Order Graveyard
lblRestartForge=Restart Forge
lblRestartForgeDescription=You must restart Forge for this change to take effect.
lblRotateZoomPlanesPhenomena=Rotate Zoom Image of Planes/Phenomena
lblRotateZoomPlanesPhenomena=Rotate Zoom Image of Battle/Planes/Phenomena
lblRotateZoomSplit=Rotate Zoom Image of Split Cards
lblShowAbilityIconsOverlays=Show Ability Icons
lblShowCardIDOverlays=Show Card ID Overlays
@@ -1043,7 +1043,7 @@ nlHotSeatMode=When starting a game with 2 human players, use single prompt to co
nlLandscapeMode=Use landscape (horizontal) orientation for app instead of portrait (vertical).
nlMinimizeScreenLock=Minimize Forge when screen is locked (enable if you experience graphic glitches after locking your screen).
nlOrderGraveyard=Determines when to allow to order cards going to graveyard (never/always/only with relevant cards).
nlRotateZoomPlanesPhenomena=Rotates the zoomed image of Plane or Phenomenon cards.
nlRotateZoomPlanesPhenomena=Rotates the zoomed image of Battle, Plane or Phenomenon cards.
nlRotateZoomSplit=Rotates the zoomed image of split cards.
nlShowAbilityIconsOverlays=Show ability icons for cards, otherwise they''re hidden.
nlShowCardIDOverlays=Show id overlays for cards, otherwise they''re hidden.