* Some more changes to adjustment possibilities of GUI size.

This commit is contained in:
LevelX2 2016-02-17 18:08:21 +01:00
parent ff52fcd588
commit 28b129018f
9 changed files with 463 additions and 142 deletions

View file

@ -54,6 +54,9 @@ public class GUISizeHelper {
public static Dimension otherZonesCardDimension;
public static Dimension battlefieldCardDimension;
public static Dimension editorCardDimension;
public static int editorCardOffsetSize;
public static int getTableRowHeight() {
int fontSize = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_TABLE_FONT_SIZE, 14);
return fontSize + 6;
@ -125,5 +128,9 @@ public class GUISizeHelper {
int battlefieldCardSize = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_CARD_BATTLEFIELD_SIZE, 14);
battlefieldCardDimension = new Dimension(CARD_IMAGE_WIDTH * battlefieldCardSize / 42, CARD_IMAGE_HEIGHT * battlefieldCardSize / 42);
int editorCardSize = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_CARD_EDITOR_SIZE, 14);
editorCardDimension = new Dimension(CARD_IMAGE_WIDTH * editorCardSize / 42, CARD_IMAGE_HEIGHT * editorCardSize / 42);
editorCardOffsetSize = 2 * PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_CARD_OFFSET_SIZE, 14) - 10;
}
}