mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Support double-click and Shift+left click to tap all lands in the same stack
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user