mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- The attack/block/phasing icons and counters will now also be shown on large cards (only casting cost will be omitted)
This commit is contained in:
@@ -267,13 +267,14 @@ public class CardPanel extends JPanel implements CardContainer {
|
||||
protected void paintChildren(Graphics g) {
|
||||
super.paintChildren(g);
|
||||
|
||||
boolean canDrawOverCard = showCastingCost && !isAnimationPanel && cardWidth < 200;
|
||||
boolean canDrawOverCard = showCastingCost && !isAnimationPanel;
|
||||
|
||||
if (!canDrawOverCard)
|
||||
return;
|
||||
|
||||
int width = ManaSymbols.getWidth(gameCard.getManaCost());
|
||||
ManaSymbols.draw(g, gameCard.getManaCost(), cardXOffset + cardWidth / 2 - width / 2, cardYOffset + cardHeight / 2);
|
||||
if(cardWidth < 200)
|
||||
ManaSymbols.draw(g, gameCard.getManaCost(), cardXOffset + cardWidth / 2 - width / 2, cardYOffset + cardHeight / 2);
|
||||
|
||||
int counters = getCard().getNumberOfCounters();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user