- Small tweak (symbols shouldn't show up on images wider than 200px).

This commit is contained in:
jendave
2011-08-06 14:13:19 +00:00
parent e0f9d3a90d
commit 1a532287cc

View File

@@ -188,12 +188,12 @@ public class CardPanel extends JPanel implements CardContainer{
}
//int yOff = (cardHeight/4) + 2;
if (showCastingCost && !isAnimationPanel && getCard().isAttacking() )
if (showCastingCost && !isAnimationPanel && cardWidth < 200 && getCard().isAttacking() )
ManaSymbols.drawSymbol("attack", g, cardXOffset + cardWidth / 4 - 16, cardYOffset + cardHeight - (cardHeight/8) - 16);
else if (showCastingCost && !isAnimationPanel && getCard().isBlocking() )
else if (showCastingCost && !isAnimationPanel && cardWidth < 200 && getCard().isBlocking() )
ManaSymbols.drawSymbol("defend", g, cardXOffset + cardWidth / 4 - 16, cardYOffset + cardHeight - (cardHeight/8) - 16);
if (showCastingCost && !isAnimationPanel && getCard().isCreature() && getCard().hasSickness() && AllZoneUtil.isCardInPlay(getCard()))
if (showCastingCost && !isAnimationPanel && cardWidth < 200 && getCard().isCreature() && getCard().hasSickness() && AllZoneUtil.isCardInPlay(getCard()))
ManaSymbols.drawSymbol("summonsick", g, cardXOffset + cardWidth / 2 - 16, cardYOffset + cardHeight - (cardHeight/8) - 16 );
}