Fix so token has name displayed in detail pane

This commit is contained in:
drdev
2014-10-21 00:44:39 +00:00
parent 51ffbcaeb7
commit 75352fd7dd

View File

@@ -698,11 +698,15 @@ public class CardView extends GameEntityView {
public String getName() { public String getName() {
return get(TrackableProperty.Name); return get(TrackableProperty.Name);
} }
void updateName(Card c) {
setName(c.getName());
}
void updateName(CardState c) { void updateName(CardState c) {
setName(c.getName()); setName(c.getName());
if (CardView.this.getCurrentState() == this) {
Card card = Card.get(CardView.this);
if (card != null) {
CardView.this.updateName(card);
}
}
} }
private void setName(String name0) { private void setName(String name0) {
set(TrackableProperty.Name, name0); set(TrackableProperty.Name, name0);