[Mobile] Add support for viewing both sides of facedown DFC

This commit is contained in:
Anthony Calosa
2021-03-05 01:53:14 +08:00
parent 890733bd44
commit e030e28d80
2 changed files with 12 additions and 0 deletions

View File

@@ -180,6 +180,12 @@ public class CardZoom extends FOverlay {
return true;
}
if (flipIconBounds != null && flipIconBounds.contains(x, y)) {
if (currentCard.isFaceDown() && currentCard.getBackup() != null) {
if (currentCard.getBackup().hasBackSide()) {
show(currentCard.getBackup());
return true;
}
}
if (!showBackSide)
showAltState = !showAltState;
else