mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
fix card Detail Panel for split cards on desktop version
This commit is contained in:
@@ -204,7 +204,7 @@ public class CardDetailPanel extends SkinnedPanel {
|
|||||||
} else {
|
} else {
|
||||||
final String manaCost;
|
final String manaCost;
|
||||||
if (card.isSplitCard() && card.hasAlternateState() && !card.isFaceDown() && card.getZone() != ZoneType.Stack) { //only display current state's mana cost when on stack
|
if (card.isSplitCard() && card.hasAlternateState() && !card.isFaceDown() && card.getZone() != ZoneType.Stack) { //only display current state's mana cost when on stack
|
||||||
manaCost = card.getCurrentState().getManaCost() + " // " + card.getAlternateState().getManaCost();
|
manaCost = card.getLeftSplitState().getManaCost() + " // " + card.getAlternateState().getManaCost();
|
||||||
} else {
|
} else {
|
||||||
manaCost = state.getManaCost().toString();
|
manaCost = state.getManaCost().toString();
|
||||||
}
|
}
|
||||||
@@ -256,7 +256,7 @@ public class CardDetailPanel extends SkinnedPanel {
|
|||||||
idLabel.setText(mayView ? CardDetailUtil.formatCardId(state) : "");
|
idLabel.setText(mayView ? CardDetailUtil.formatCardId(state) : "");
|
||||||
|
|
||||||
// fill the card text
|
// fill the card text
|
||||||
cdArea.setText(FSkin.encodeSymbols(CardDetailUtil.composeCardText(state, gameView, mayView), true));
|
cdArea.setText(FSkin.encodeSymbols(CardDetailUtil.composeCardText( card.isSplitCard() && !isInAltState ? card.getLeftSplitState() : state, gameView, mayView), true));
|
||||||
|
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@Override public void run() {
|
@Override public void run() {
|
||||||
|
|||||||
Reference in New Issue
Block a user