GUI: added preferences settings for card icons (enable abilities icons and playable icon);

This commit is contained in:
Oleg Agafonov 2021-01-30 17:34:10 +04:00
parent a1da5ef437
commit 2fe2f05b60
4 changed files with 728 additions and 778 deletions

View file

@ -138,7 +138,7 @@ public final class GUISizeHelper {
int otherZonesCardSize = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_CARD_OTHER_ZONES_SIZE, 14);
otherZonesCardDimension = new Dimension(CARD_IMAGE_WIDTH * otherZonesCardSize / 42, CARD_IMAGE_HEIGHT * otherZonesCardSize / 42);
if (PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_RENDERING_FALLBACK, "false").equals("false")) {
if (PreferencesDialog.getRenderMode() == 0) {
otherZonesCardVerticalOffset = CardRenderer.getCardTopHeight(otherZonesCardDimension.width);
} else if (otherZonesCardSize > 29) {
otherZonesCardVerticalOffset = otherZonesCardDimension.height / 8;