Class SBFInGameObjectTooltip
java.lang.Object
megamek.client.ui.clientGUI.tooltip.SBFInGameObjectTooltip
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseTooltip(InGameObject unit, SBFGame game) static StringgetTooltip(InGameObject unit, SBFGame game) static ColorownerColor(InGameObject unit, IGame game) Returns the Color of the owner of the unit (InGameObject) or Color.GRAY, if it cannot be found.static Stringstyles()static StringBuilder
-
Field Details
-
TOOLTIP_BASE_WIDTH
public static final int TOOLTIP_BASE_WIDTH- See Also:
-
-
Method Details
-
styles
-
getTooltip
-
getBaseTooltip
-
ownerColor
Returns the Color of the owner of the unit (InGameObject) or Color.GRAY, if it cannot be found.- Parameters:
unit- The unitgame- The game of that unit- Returns:
- The owning player's color or GRAY
-
unitLine
-