mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
[Desktop] add ability icons
This commit is contained in:
@@ -519,10 +519,18 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
|
|||||||
int abiY = cardWidth < 200 ? cardYOffset + 25 : cardYOffset + 50;
|
int abiY = cardWidth < 200 ? cardYOffset + 25 : cardYOffset + 50;
|
||||||
hasFlash = false;
|
hasFlash = false;
|
||||||
if (ZoneType.Battlefield.equals(card.getZone()) && showAbilityIcons()){
|
if (ZoneType.Battlefield.equals(card.getZone()) && showAbilityIcons()){
|
||||||
|
if (card.isCommander()) {
|
||||||
|
CardFaceSymbols.drawAbilitySymbol("commander", g, abiX, abiY, abiScale, abiScale);
|
||||||
|
abiY += abiSpace;
|
||||||
|
}
|
||||||
if (card.getCurrentState().hasFlying()) {
|
if (card.getCurrentState().hasFlying()) {
|
||||||
CardFaceSymbols.drawAbilitySymbol("flying", g, abiX, abiY, abiScale, abiScale);
|
CardFaceSymbols.drawAbilitySymbol("flying", g, abiX, abiY, abiScale, abiScale);
|
||||||
abiY += abiSpace;
|
abiY += abiSpace;
|
||||||
}
|
}
|
||||||
|
if (card.getCurrentState().hasHaste()) {
|
||||||
|
CardFaceSymbols.drawAbilitySymbol("haste", g, abiX, abiY, abiScale, abiScale);
|
||||||
|
abiY += abiSpace;
|
||||||
|
}
|
||||||
if (card.getCurrentState().hasDoubleStrike()) {
|
if (card.getCurrentState().hasDoubleStrike()) {
|
||||||
CardFaceSymbols.drawAbilitySymbol("doublestrike", g, abiX, abiY, abiScale, abiScale);
|
CardFaceSymbols.drawAbilitySymbol("doublestrike", g, abiX, abiY, abiScale, abiScale);
|
||||||
abiY += abiSpace;
|
abiY += abiSpace;
|
||||||
|
|||||||
Reference in New Issue
Block a user