forked from External/mage
* GUI: added card icon for commander on battlefield;
Card icons: added support of custom card icon colors;
This commit is contained in:
parent
06ae494c5b
commit
4d1985476f
17 changed files with 327 additions and 116 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package mage.client.cards;
|
||||
|
||||
import mage.abilities.icon.CardIconColor;
|
||||
import mage.abilities.icon.CardIconOrder;
|
||||
import mage.abilities.icon.CardIconPosition;
|
||||
import mage.abilities.icon.CardIconRenderSettings;
|
||||
|
|
@ -15,6 +16,7 @@ public class CardIconsPanelFactory {
|
|||
return new CardIconsPanel(
|
||||
CardIconPosition.LEFT,
|
||||
CardIconOrder.CENTER,
|
||||
CardIconColor.DEFAULT,
|
||||
5,
|
||||
30
|
||||
);
|
||||
|
|
@ -24,11 +26,23 @@ public class CardIconsPanelFactory {
|
|||
return new CardIconsPanel(
|
||||
CardIconPosition.CORNER_BOTTOM_LEFT,
|
||||
CardIconOrder.CENTER,
|
||||
CardIconColor.DEFAULT,
|
||||
1,
|
||||
30
|
||||
);
|
||||
}
|
||||
|
||||
public static CardIconsPanel createCommanderPanel() {
|
||||
// must be x2 bigger than normal icons
|
||||
return new CardIconsPanel(
|
||||
CardIconPosition.TOP,
|
||||
CardIconOrder.CENTER,
|
||||
CardIconColor.RED,
|
||||
1,
|
||||
30 * 2 // TODO: big size doesn't work due icons same size limits, see CardIconsPanel
|
||||
);
|
||||
}
|
||||
|
||||
public static CardIconsPanel createDebugPanel(CardIconRenderSettings render) {
|
||||
return new CardIconsPanel(render);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue