mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
fix copying deck to clipboard
This commit is contained in:
@@ -240,6 +240,9 @@ public class PaperCard implements Comparable<IPaperCard>, InventoryItemFromSet,
|
||||
// cannot still decide, if this "name|set" format is needed anymore
|
||||
// return String.format("%s|%s", name, cardSet);
|
||||
}
|
||||
public String getCardName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/*
|
||||
* This (utility) method transform a collectorNumber String into a key string for sorting.
|
||||
|
||||
@@ -189,7 +189,7 @@ public class FDeckViewer extends FDialog {
|
||||
sectionCards = new TreeMap<>();
|
||||
deckList.append(nl);
|
||||
for (final Entry<PaperCard, Integer> ev : cp) {
|
||||
cardName = ev.getKey().toString();
|
||||
cardName = ev.getKey().getCardName();
|
||||
if (sectionCards.containsKey(cardName)) {
|
||||
sectionCards.put(cardName, (int)sectionCards.get(cardName) + ev.getValue());
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public class FDeckViewer extends FScreen {
|
||||
deckList.append(s.toString()).append(": ");
|
||||
deckList.append(nl);
|
||||
for (final Entry<PaperCard, Integer> ev : cp) {
|
||||
deckList.append(ev.getValue()).append(" ").append(ev.getKey()).append(nl);
|
||||
deckList.append(ev.getValue()).append(" ").append(ev.getKey().getCardName()).append(nl);
|
||||
}
|
||||
deckList.append(nl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user