* 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,35 @@
package mage.client.cards;
import mage.abilities.icon.CardIconOrder;
import mage.abilities.icon.CardIconPosition;
import mage.abilities.icon.CardIconRenderSettings;
/**
* GUI panel to drawning icons (one of the card's side)
*
* @author JayDi85
*/
public class CardIconsPanelFactory {
public static CardIconsPanel createAbilitiesPanel() {
return new CardIconsPanel(
CardIconPosition.LEFT,
CardIconOrder.CENTER,
5,
30
);
}
public static CardIconsPanel createPlayablePanel() {
return new CardIconsPanel(
CardIconPosition.CORNER_BOTTOM_LEFT,
CardIconOrder.CENTER,
1,
30
);
}
public static CardIconsPanel createDebugPanel(CardIconRenderSettings render) {
return new CardIconsPanel(render);
}
}