* GUI: added card icon for face down permanents;

This commit is contained in:
Oleg Agafonov 2021-07-17 20:15:21 +04:00
parent c0b4790c4d
commit 12aa3b82b8
6 changed files with 52 additions and 0 deletions

View file

@ -1,6 +1,8 @@
package mage.abilities.icon;
/**
* For GUI: different icons category can go to different position/panels on the card
*
* @author JayDi85
*/
public enum CardIconCategory {

View file

@ -31,6 +31,8 @@ public enum CardIconType {
ABILITY_VIGILANCE("prepared/eye.svg", CardIconCategory.ABILITY, 100),
ABILITY_CLASS_LEVEL("prepared/hexagon-fill.svg", CardIconCategory.ABILITY, 100),
//
OTHER_FACEDOWN("prepared/reply-fill.svg", CardIconCategory.ABILITY, 100),
//
SYSTEM_COMBINED("prepared/square-fill.svg", CardIconCategory.SYSTEM, 1000), // inner usage, must use last order
SYSTEM_DEBUG("prepared/link.svg", CardIconCategory.SYSTEM, 1000); // used for test render dialog

View file

@ -0,0 +1,31 @@
package mage.abilities.icon.other;
import mage.abilities.icon.CardIcon;
import mage.abilities.icon.CardIconType;
/**
* @author JayDi85
*/
public enum FaceDownStatusIcon implements CardIcon {
instance;
@Override
public CardIconType getIconType() {
return CardIconType.OTHER_FACEDOWN;
}
@Override
public String getText() {
return "";
}
@Override
public String getHint() {
return "Card is face down";
}
@Override
public CardIcon copy() {
return instance;
}
}