Skip to content

Commit

Permalink
Merge pull request #4834 from kuronekochomusuke/unitToolTipTSMActive
Browse files Browse the repository at this point in the history
unit tooltip show when TSM is active
  • Loading branch information
SJuliez authored Oct 18, 2023
2 parents 2c49a74 + 8f4a56d commit bda4af0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions megamek/src/megamek/client/ui/swing/tooltip/UnitToolTip.java
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,12 @@ private static StringBuilder inGameValues(Entity entity, Player localPlayer, boo
HeatDisplayHelper hdh = getHeatCapacityForDisplay(entity);
sHeat += " / "+ hdh.heatCapacityStr;
result += guiScaledFontHTML(GUIP.getColorForHeat(heat)) + sHeat + "</FONT>";

if (entity instanceof Mech && ((Mech) entity).hasActiveTSM()) {
result += DOT_SPACER;
String sTSM = "TSM";
result += guiScaledFontHTML(GUIP.getPrecautionColor()) + sTSM + "</FONT>";
}
}

String searchLight = entity.isUsingSearchlight() ? DOT_SPACER +"\uD83D\uDD26" : "";
Expand Down

0 comments on commit bda4af0

Please sign in to comment.