mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user