From 8f4a56d062bfc3acfbfaf4629169a41e91b146d9 Mon Sep 17 00:00:00 2001 From: kuronekochomusuke Date: Fri, 13 Oct 2023 19:42:11 -0400 Subject: [PATCH] unit tooltip show when TSM is active --- .../src/megamek/client/ui/swing/tooltip/UnitToolTip.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/megamek/src/megamek/client/ui/swing/tooltip/UnitToolTip.java b/megamek/src/megamek/client/ui/swing/tooltip/UnitToolTip.java index b1d53af656d..7d46ea42e26 100644 --- a/megamek/src/megamek/client/ui/swing/tooltip/UnitToolTip.java +++ b/megamek/src/megamek/client/ui/swing/tooltip/UnitToolTip.java @@ -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 + ""; + + if (entity instanceof Mech && ((Mech) entity).hasActiveTSM()) { + result += DOT_SPACER; + String sTSM = "TSM"; + result += guiScaledFontHTML(GUIP.getPrecautionColor()) + sTSM + ""; + } } String searchLight = entity.isUsingSearchlight() ? DOT_SPACER +"\uD83D\uDD26" : "";