mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
enable option to zoom view rotated battle cards
This commit is contained in:
@@ -802,7 +802,7 @@ public class CardImageRenderer {
|
|||||||
croppedArea = 0.975f;
|
croppedArea = 0.975f;
|
||||||
minusxy = 0.135f * radius;
|
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 (Forge.enableUIMask.equals("Full")) {
|
||||||
if (image.toString().contains(".fullborder."))
|
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);
|
g.drawCardRoundRect(image, new_x, new_y, new_w, new_h, new_x + new_w / 2, new_y + new_h / 2, -90);
|
||||||
|
|||||||
@@ -637,7 +637,7 @@ public class CardRenderer {
|
|||||||
g.drawCardImage(image, crack_overlay, x, y, w, h, card.wasDestroyed(), magnify ? false : card.getDamage() > 0);
|
g.drawCardImage(image, crack_overlay, x, y, w, h, card.wasDestroyed(), magnify ? false : card.getDamage() > 0);
|
||||||
} else {
|
} else {
|
||||||
if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_ROTATE_PLANE_OR_PHENOMENON)
|
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 (Forge.enableUIMask.equals("Full")) {
|
||||||
if (image.toString().contains(".fullborder."))
|
if (image.toString().contains(".fullborder."))
|
||||||
g.drawCardRoundRect(image, x, y, w, h, x + w / 2, y + h / 2, -90);
|
g.drawCardRoundRect(image, x, y, w, h, x + w / 2, y + h / 2, -90);
|
||||||
|
|||||||
@@ -1020,7 +1020,7 @@ lblMinimizeScreenLock=Minimize on Screen Lock
|
|||||||
lblOrderGraveyard=Order Graveyard
|
lblOrderGraveyard=Order Graveyard
|
||||||
lblRestartForge=Restart Forge
|
lblRestartForge=Restart Forge
|
||||||
lblRestartForgeDescription=You must restart Forge for this change to take effect.
|
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
|
lblRotateZoomSplit=Rotate Zoom Image of Split Cards
|
||||||
lblShowAbilityIconsOverlays=Show Ability Icons
|
lblShowAbilityIconsOverlays=Show Ability Icons
|
||||||
lblShowCardIDOverlays=Show Card ID Overlays
|
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).
|
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).
|
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).
|
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.
|
nlRotateZoomSplit=Rotates the zoomed image of split cards.
|
||||||
nlShowAbilityIconsOverlays=Show ability icons for cards, otherwise they''re hidden.
|
nlShowAbilityIconsOverlays=Show ability icons for cards, otherwise they''re hidden.
|
||||||
nlShowCardIDOverlays=Show id overlays for cards, otherwise they''re hidden.
|
nlShowCardIDOverlays=Show id overlays for cards, otherwise they''re hidden.
|
||||||
|
|||||||
Reference in New Issue
Block a user