forked from External/mage
Added some font color to object and player names output to game logging and feedback area.
This commit is contained in:
parent
c3ea08b59c
commit
9c97953b6b
384 changed files with 745 additions and 636 deletions
|
|
@ -114,7 +114,7 @@ public class CardsView extends LinkedHashMap<UUID, CardView> {
|
|||
} else {
|
||||
sourceCardView = new CardView(sourceObject);
|
||||
}
|
||||
abilityView = new AbilityView(ability, sourceObject.getLogName(), sourceCardView);
|
||||
abilityView = new AbilityView(ability, sourceObject.getName(), sourceCardView);
|
||||
}
|
||||
if (ability.getTargets().size() > 0) {
|
||||
abilityView.setTargets(ability.getTargets());
|
||||
|
|
@ -133,7 +133,7 @@ public class CardsView extends LinkedHashMap<UUID, CardView> {
|
|||
for (UUID uuid : abilityTargets) {
|
||||
MageObject mageObject = game.getObject(uuid);
|
||||
if (mageObject != null) {
|
||||
names.add(mageObject.getLogName());
|
||||
names.add(mageObject.getName());
|
||||
}
|
||||
}
|
||||
if (!names.isEmpty()) {
|
||||
|
|
@ -150,7 +150,7 @@ public class CardsView extends LinkedHashMap<UUID, CardView> {
|
|||
for (Ability ability: abilities) {
|
||||
Card sourceCard = state.getPermanent(ability.getSourceId());
|
||||
if (sourceCard != null) {
|
||||
this.put(ability.getId(), new AbilityView(ability, sourceCard.getLogName(), new CardView(sourceCard)));
|
||||
this.put(ability.getId(), new AbilityView(ability, sourceCard.getName(), new CardView(sourceCard)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue