Reduced hand cards size. Removed battlefield card area gap (cards now have more place and are less reduced in size).

This commit is contained in:
magenoxx 2011-01-29 20:03:22 +03:00
parent 93878d4868
commit 2abc0e888d
15 changed files with 81 additions and 36 deletions

View file

@ -73,6 +73,7 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
protected static Map<UUID, PermanentView> battlefield;
protected static List<Thread> threads = new ArrayList<Thread>();
private static Dimension cardDimension;
/** Creates new form BattlefieldPanel */
public BattlefieldPanel(JScrollPane jScrollPane) {
@ -154,7 +155,10 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
}
private void addPermanent(PermanentView permanent, final int count) {
final MagePermanent perm = Plugins.getInstance().getMagePermanent(permanent, bigCard, Config.dimensions, gameId, true);
if (cardDimension == null) {
cardDimension = new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight);
}
final MagePermanent perm = Plugins.getInstance().getMagePermanent(permanent, bigCard, cardDimension, gameId, true);
if (!Plugins.getInstance().isCardPluginLoaded()) {
perm.setBounds(findEmptySpace(new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight)));
} else {