mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Fixed tooltip bug appeared after adding displaying counters. Updated card plugin. Hid New Draft button for release as drafting is not ready yet.
This commit is contained in:
parent
4cc14cb3ed
commit
a99be05446
4 changed files with 26 additions and 18 deletions
Binary file not shown.
|
|
@ -227,6 +227,8 @@ public class TablesPanel extends javax.swing.JPanel implements Observer {
|
||||||
btnNewDraftActionPerformed(evt);
|
btnNewDraftActionPerformed(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//FIXME: removed on released 0.6 version
|
||||||
|
btnNewDraft.setVisible(false);
|
||||||
|
|
||||||
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
|
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
|
||||||
jPanel1.setLayout(jPanel1Layout);
|
jPanel1.setLayout(jPanel1Layout);
|
||||||
|
|
|
||||||
|
|
@ -249,6 +249,7 @@ public class DeckBuilder {
|
||||||
maxSingleCount = Math.max(maxSingleCount, typeCount);
|
maxSingleCount = Math.max(maxSingleCount, typeCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
maxSingleCount = Math.min(maxSingleCount, SINGLE_PENALTY.length - 1);
|
||||||
return 2 * converted + 3 * (10 - SINGLE_PENALTY[maxSingleCount]/*-DOUBLE_PENALTY[doubleCount]*/);
|
return 2 * converted + 3 * (10 - SINGLE_PENALTY[maxSingleCount]/*-DOUBLE_PENALTY[doubleCount]*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,10 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
||||||
|
|
||||||
List<String> rules = card.getRules();
|
List<String> rules = card.getRules();
|
||||||
List<String> rulings = new ArrayList<String>(rules);
|
List<String> rulings = new ArrayList<String>(rules);
|
||||||
|
try {
|
||||||
if (card instanceof PermanentView) {
|
if (card instanceof PermanentView) {
|
||||||
int count = ((PermanentView)card).getCounters().size();
|
List<CounterView> counters = ((PermanentView)card).getCounters();
|
||||||
|
int count = counters != null ? counters.size() : 0;
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
@ -74,6 +76,9 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
||||||
rulings.add(sb.toString());
|
rulings.add(sb.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
boolean smallImages = true;
|
boolean smallImages = true;
|
||||||
int fontSize = 11;
|
int fontSize = 11;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue