forked from External/mage
* 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:
parent
df98cc3e62
commit
a1da5ef437
304 changed files with 7266 additions and 5093 deletions
34
Mage/src/main/java/mage/abilities/icon/CardIcon.java
Normal file
34
Mage/src/main/java/mage/abilities/icon/CardIcon.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue