forked from External/mage
Allow multiple icons at the top right of player avatar (#12169)
This commit is contained in:
parent
42906f519b
commit
9f52c8946e
2 changed files with 19 additions and 9 deletions
|
|
@ -400,20 +400,20 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
|||
tooltipText.append("<br/>Match time remaining: ").append(getPriorityTimeLeftString(player));
|
||||
|
||||
// designations
|
||||
this.avatar.setTopTextImageRight(null);
|
||||
this.avatar.clearTopTextImagesRight();
|
||||
for (String name : player.getDesignationNames()) {
|
||||
tooltipText.append("<br/>").append(name);
|
||||
if (DesignationType.CITYS_BLESSING.toString().equals(name)) {
|
||||
this.avatar.setTopTextImageRight(ImageHelper.getImageFromResources("/info/city_blessing.png"));
|
||||
this.avatar.addTopTextImageRight(ImageHelper.getImageFromResources("/info/city_blessing.png"));
|
||||
}
|
||||
}
|
||||
if (player.isMonarch()) {
|
||||
tooltipText.append("<br/>").append("The Monarch");
|
||||
this.avatar.setTopTextImageRight(ImageHelper.getImageFromResources("/info/crown.png"));
|
||||
this.avatar.addTopTextImageRight(ImageHelper.getImageFromResources("/info/crown.png"));
|
||||
}
|
||||
if (player.isInitiative()) {
|
||||
tooltipText.append("<br/>").append("Have the Initiative");
|
||||
this.avatar.setTopTextImageRight(ImageHelper.getImageFromResources("/info/initiative.png"));
|
||||
this.avatar.addTopTextImageRight(ImageHelper.getImageFromResources("/info/initiative.png"));
|
||||
}
|
||||
|
||||
// counters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue