forked from External/mage
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:
parent
93878d4868
commit
2abc0e888d
15 changed files with 81 additions and 36 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue