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