* GUI: added card icon for commander on battlefield;

Card icons: added support of custom card icon colors;
This commit is contained in:
Oleg Agafonov 2021-07-23 19:51:45 +04:00
parent 06ae494c5b
commit 4d1985476f
17 changed files with 327 additions and 116 deletions

View file

@ -10,6 +10,7 @@ public class CardIconRenderSettings {
// custom settings for test render dialog
CardIconPosition customPosition = null;
CardIconOrder customOrder = null;
CardIconColor customColor = null;
int customMaxVisibleCount = 0;
int customIconSizePercent = 0;
boolean debugMode = false;
@ -27,6 +28,11 @@ public class CardIconRenderSettings {
return this;
}
public CardIconRenderSettings withCustomColor(CardIconColor customColor) {
this.customColor = customColor;
return this;
}
public CardIconRenderSettings withCustomMaxVisibleCount(int customMaxVisibleCount) {
this.customMaxVisibleCount = customMaxVisibleCount;
return this;
@ -50,6 +56,10 @@ public class CardIconRenderSettings {
return customPosition;
}
public CardIconColor getCustomColor() {
return customColor;
}
public int getCustomIconSizePercent() {
return customIconSizePercent;
}