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
37
Mage/src/main/java/mage/abilities/icon/CardIconPosition.java
Normal file
37
Mage/src/main/java/mage/abilities/icon/CardIconPosition.java
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
package mage.abilities.icon;
|
||||
|
||||
/**
|
||||
* Card icons position on the card
|
||||
*
|
||||
* @author JayDi85
|
||||
*/
|
||||
public enum CardIconPosition {
|
||||
|
||||
TOP(7),
|
||||
LEFT(7),
|
||||
BOTTOM(7),
|
||||
RIGHT(7),
|
||||
CORNER_TOP_LEFT(1),
|
||||
CORNER_TOP_RIGHT(1),
|
||||
CORNER_BOTTOM_LEFT(1),
|
||||
CORNER_BOTTOM_RIGHT(1);
|
||||
|
||||
private final int maxIconsAmount; // max icons for the panel
|
||||
|
||||
CardIconPosition(int maxIconsAmount) {
|
||||
this.maxIconsAmount = maxIconsAmount;
|
||||
}
|
||||
|
||||
public int getMaxIconsAmount() {
|
||||
return this.maxIconsAmount;
|
||||
}
|
||||
|
||||
public static CardIconPosition fromString(String value) {
|
||||
for (CardIconPosition item : CardIconPosition.values()) {
|
||||
if (item.toString().equals(value)) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue