mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
GUI: Card Viewer - added support of xmage inner images like morph, blessing, etc (look in XMAGE set, related to #11622);
This commit is contained in:
parent
f5a43d9115
commit
38c71cfeed
7 changed files with 81 additions and 17 deletions
|
|
@ -0,0 +1,31 @@
|
|||
package mage.game.permanent.token.custom;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.cards.FrameStyle;
|
||||
import mage.game.permanent.token.TokenImpl;
|
||||
|
||||
/**
|
||||
* GUI: inner xmage token object to show custom images (information tokens like morph, blessing, etc)
|
||||
*
|
||||
* @author JayDi85
|
||||
*/
|
||||
public final class XmageToken extends TokenImpl {
|
||||
|
||||
public XmageToken(String name) {
|
||||
super(name, "");
|
||||
this.frameStyle = FrameStyle.BFZ_FULL_ART_BASIC; // use full art for better visual in card viewer
|
||||
}
|
||||
|
||||
public XmageToken withAbility(Ability ability) {
|
||||
this.addAbility(ability);
|
||||
return this;
|
||||
}
|
||||
|
||||
private XmageToken(final XmageToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public XmageToken copy() {
|
||||
return new XmageToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue