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.

This commit is contained in:
Doublestrike
2012-01-15 07:49:39 +00:00
parent dababeffe0
commit 93df8f62ac

View File

@@ -364,17 +364,17 @@ 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;
}
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();