Skip to content

Commit

Permalink
add indicator if a unit is done or not
Browse files Browse the repository at this point in the history
  • Loading branch information
kuronekochomusuke committed Dec 31, 2023
1 parent 9f02c03 commit 8453a2f
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,23 @@ static String formatUnitCompact(Entity entity, ClientGUI clientGUI) {
color = addGray(color, 128).brighter();

if (entity.getForceId() == Force.NO_FORCE) {
result.append(guiScaledFontHTML(color) + "\u25AD </FONT>");
result.append(guiScaledFontHTML(color) + "\u25AD" + "</FONT>");
}

String id = MessageFormat.format("[{0}] ", entity.getId());
result.append(guiScaledFontHTML(GUIP.getUnitToolTipHighlightColor()) + id + "</FONT>");

// Done
if (!game.getPhase().isReport()) {
String done = "";
if (!entity.isDone()) {
done = "\u2610 ";
} else {
done = "\u2611 ";
}
result.append(guiScaledFontHTML(color) + done + "</FONT>");
}

// Unit name
// Gray out if the unit is a fighter in a squadron
if (entity.isPartOfFighterSquadron()) {
Expand Down

0 comments on commit 8453a2f

Please sign in to comment.