mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
card detail panel will not display card id for cards not belonging to any game (id<=0)
This commit is contained in:
@@ -302,7 +302,7 @@ public class CardDetailPanel extends FPanel {
|
|||||||
|
|
||||||
this.powerToughnessLabel.setText(ptText.toString());
|
this.powerToughnessLabel.setText(ptText.toString());
|
||||||
|
|
||||||
this.idLabel.setText("Card ID " + card.getUniqueNumber());
|
this.idLabel.setText(card.getUniqueNumber() > 0 ? "Card ID " + card.getUniqueNumber() : null);
|
||||||
|
|
||||||
// fill the card text
|
// fill the card text
|
||||||
this.cdArea.setText(composeCardText(card, canShowThis));
|
this.cdArea.setText(composeCardText(card, canShowThis));
|
||||||
@@ -615,11 +615,6 @@ public class CardDetailPanel extends FPanel {
|
|||||||
return this.powerToughnessLabel;
|
return this.powerToughnessLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return JLabel */
|
|
||||||
public JLabel getIDLabel() {
|
|
||||||
return this.idLabel;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @return JLabel */
|
/** @return JLabel */
|
||||||
public JLabel getSetInfoLabel() {
|
public JLabel getSetInfoLabel() {
|
||||||
return this.setInfoLabel;
|
return this.setInfoLabel;
|
||||||
|
|||||||
Reference in New Issue
Block a user