Class TooltipSystem.TooltipManager
java.lang.Object
com.csse3200.game.components.tooltip.TooltipSystem.TooltipManager
- Enclosing class:
TooltipSystem
Global manager for coordinating between TooltipComponent and TooltipDisplay.
Uses static methods for simple global communication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Hide the currently displayed tooltipstatic void
Register the active tooltip display componentstatic void
showTooltip
(String text, TooltipSystem.TooltipStyle style) Show a tooltip with the specified text and style
-
Constructor Details
-
TooltipManager
public TooltipManager()
-
-
Method Details
-
setActiveDisplay
Register the active tooltip display component- Parameters:
display
- The TooltipDisplay component to register
-
showTooltip
Show a tooltip with the specified text and style- Parameters:
text
- The text to displaystyle
- The visual style to use
-
hideTooltip
public static void hideTooltip()Hide the currently displayed tooltip
-