Show ??? as name for face-down cards

This commit is contained in:
drdev
2014-04-26 03:41:33 +00:00
parent 7ce2759742
commit 2f28001b9f
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ public class CardDetailPanel extends SkinnedPanel {
if (card.isFaceDown()) { if (card.isFaceDown()) {
if (card.isInZone(ZoneType.Battlefield)) { if (card.isInZone(ZoneType.Battlefield)) {
this.nameCostLabel.setText("Morph"); this.nameCostLabel.setText("???");
this.typeLabel.setText("Creature"); this.typeLabel.setText("Creature");
} }
} }

View File

@@ -544,7 +544,7 @@ public class InputSelectCard {
x += padding; x += padding;
w -= 2 * padding; w -= 2 * padding;
g.drawText(card.getName(), NAME_FONT, Color.BLACK, x, y, w - manaCostWidth - padding, h, false, HAlignment.LEFT, true); g.drawText(card.isFaceDown() ? "???" : card.getName(), NAME_FONT, Color.BLACK, x, y, w - manaCostWidth - padding, h, false, HAlignment.LEFT, true);
y += h; y += h;
h = 2 * TYPE_FONT.getFont().getCapHeight(); h = 2 * TYPE_FONT.getFont().getCapHeight();