mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28: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.idLabel.setText("Card ID " + card.getUniqueNumber());
|
||||
this.idLabel.setText(card.getUniqueNumber() > 0 ? "Card ID " + card.getUniqueNumber() : null);
|
||||
|
||||
// fill the card text
|
||||
this.cdArea.setText(composeCardText(card, canShowThis));
|
||||
@@ -615,11 +615,6 @@ public class CardDetailPanel extends FPanel {
|
||||
return this.powerToughnessLabel;
|
||||
}
|
||||
|
||||
/** @return JLabel */
|
||||
public JLabel getIDLabel() {
|
||||
return this.idLabel;
|
||||
}
|
||||
|
||||
/** @return JLabel */
|
||||
public JLabel getSetInfoLabel() {
|
||||
return this.setInfoLabel;
|
||||
|
||||
Reference in New Issue
Block a user