From 93df8f62acf994a84a23f5354cf73fa3766fe450 Mon Sep 17 00:00:00 2001 From: Doublestrike Date: Sun, 15 Jan 2012 07:49:39 +0000 Subject: [PATCH] Fixed icons display for mana overlay setting. Now, icons and counters will show all the time, but title, p/t, and casting cost is toggle-able. --- src/main/java/arcane/ui/CardPanel.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/arcane/ui/CardPanel.java b/src/main/java/arcane/ui/CardPanel.java index 2be25182011..ef1486fabb1 100644 --- a/src/main/java/arcane/ui/CardPanel.java +++ b/src/main/java/arcane/ui/CardPanel.java @@ -364,16 +364,16 @@ public class CardPanel extends JPanel implements CardContainer { protected final void paintChildren(final Graphics g) { super.paintChildren(g); - final boolean canDrawOverCard = this.showCastingCost && !this.isAnimationPanel; - - if (!canDrawOverCard) { + if (this.isAnimationPanel) { return; } - int width = ManaSymbols.getWidth(this.getGameCard().getManaCost()); - if (this.cardWidth < 200) { - ManaSymbols.draw(g, this.getGameCard().getManaCost(), (this.cardXOffset + (this.cardWidth / 2)) - - (width / 2), this.cardYOffset + (this.cardHeight / 2)); + if (this.showCastingCost) { + int width = ManaSymbols.getWidth(this.getGameCard().getManaCost()); + if (this.cardWidth < 200) { + ManaSymbols.draw(g, this.getGameCard().getManaCost(), (this.cardXOffset + (this.cardWidth / 2)) + - (width / 2), this.cardYOffset + (this.cardHeight / 2)); + } } final int counters = this.getCard().getNumberOfCounters();