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,16 +364,16 @@ public class CardPanel extends JPanel implements CardContainer {
protected final void paintChildren(final Graphics g) { protected final void paintChildren(final Graphics g) {
super.paintChildren(g); super.paintChildren(g);
final boolean canDrawOverCard = this.showCastingCost && !this.isAnimationPanel; if (this.isAnimationPanel) {
if (!canDrawOverCard) {
return; return;
} }
int width = ManaSymbols.getWidth(this.getGameCard().getManaCost()); if (this.showCastingCost) {
if (this.cardWidth < 200) { int width = ManaSymbols.getWidth(this.getGameCard().getManaCost());
ManaSymbols.draw(g, this.getGameCard().getManaCost(), (this.cardXOffset + (this.cardWidth / 2)) if (this.cardWidth < 200) {
- (width / 2), this.cardYOffset + (this.cardHeight / 2)); ManaSymbols.draw(g, this.getGameCard().getManaCost(), (this.cardXOffset + (this.cardWidth / 2))
- (width / 2), this.cardYOffset + (this.cardHeight / 2));
}
} }
final int counters = this.getCard().getNumberOfCounters(); final int counters = this.getCard().getNumberOfCounters();