Displaying tooltips and green arrows for paired creatures

This commit is contained in:
magenoxx 2012-05-17 11:59:47 +04:00
parent 36c2b240fb
commit 1bf0e216de
4 changed files with 37 additions and 42 deletions

View file

@ -57,6 +57,9 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
List<String> rulings = new ArrayList<String>(rules);
if (card instanceof PermanentView) {
if (card.getPairedCard() != null) {
rulings.add("<span color='green'><i>Paired with another creature</i></span>");
}
List<CounterView> counters = ((PermanentView) card).getCounters();
int count = counters != null ? counters.size() : 0;
if (count > 0) {