Support double-click and Shift+left click to tap all lands in the same stack

This commit is contained in:
drdev
2014-11-26 20:47:47 +00:00
parent 61af57d7ba
commit 043304e35b
3 changed files with 34 additions and 6 deletions

View File

@@ -177,15 +177,15 @@ public class CardDetailPanel extends SkinnedPanel {
setInfoLabel.setOpaque(false);
setInfoLabel.setBorder(null);
cdArea.setText("");
if (card == null) {
final CardStateView state = card.getState(isInAltState);
if (card == null || state == null) {
updateBorder(null, false);
return;
}
boolean canShow = MatchUtil.canCardBeShown(card);
final CardStateView state = card.getState(isInAltState);
if (state.getManaCost().isNoCost() || !canShow) {
nameCostLabel.setText(CardDetailUtil.formatCardName(card, canShow, isInAltState));
}

View File

@@ -542,7 +542,7 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
if (selectOtherCardsInStack) {
if (stack != null) {
for (CardPanel p : stack) {
if (p != panel && p.getCard() != null) {
if (p != panel && p.getCard() != null && p.getStack() == stack) {
if (otherCardViewsToSelect == null) {
otherCardViewsToSelect = new ArrayList<CardView>();
}