* 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,64 @@
package mage.abilities.icon;
/**
* Card icons drawing settings for MageCard
*
* @author JayDi85
*/
public class CardIconRenderSettings {
// custom settings for test render dialog
CardIconPosition customPosition = null;
CardIconOrder customOrder = null;
int customMaxVisibleCount = 0;
int customIconSizePercent = 0;
boolean debugMode = false;
public CardIconRenderSettings() {
}
public CardIconRenderSettings withCustomPosition(CardIconPosition customPosition) {
this.customPosition = customPosition;
return this;
}
public CardIconRenderSettings withCustomOrder(CardIconOrder customOrder) {
this.customOrder = customOrder;
return this;
}
public CardIconRenderSettings withCustomMaxVisibleCount(int customMaxVisibleCount) {
this.customMaxVisibleCount = customMaxVisibleCount;
return this;
}
public CardIconRenderSettings withCustomIconSizePercent(int customIconSizePercent) {
this.customIconSizePercent = customIconSizePercent;
return this;
}
public CardIconRenderSettings withDebugMode(boolean debugMode) {
this.debugMode = debugMode;
return this;
}
public CardIconOrder getCustomOrder() {
return customOrder;
}
public CardIconPosition getCustomPosition() {
return customPosition;
}
public int getCustomIconSizePercent() {
return customIconSizePercent;
}
public int getCustomMaxVisibleCount() {
return customMaxVisibleCount;
}
public boolean isDebugMode() {
return debugMode;
}
}