* GUI: new reworked GUI and card render engine, card icons and dozens of other fixes (see full list in related PR);

This commit is contained in:
Oleg Agafonov 2021-01-30 16:38:55 +04:00
parent df98cc3e62
commit a1da5ef437
304 changed files with 7266 additions and 5093 deletions

View file

@ -0,0 +1,34 @@
package mage.abilities.icon;
import mage.util.Copyable;
/**
* @author JayDi85
*/
public interface CardIcon extends Copyable<CardIcon> {
CardIconType getIconType();
String getText();
/**
* Card hint on popup, support html and mana/restrict symbols
*
* @return
*/
String getHint();
/**
* Combined info (text + hint)
*
* @return
*/
default String getCombinedInfo() {
String res = getText();
if (!getHint().isEmpty()) {
res += res.isEmpty() ? "" : " - ";
res += getHint();
}
return res;
}
}