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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidHide the currently displayed tooltipstatic voidRegister the active tooltip display componentstatic voidsetSuppressed(boolean value) static voidshowTooltip(String text, TooltipSystem.TooltipStyle style) Show a tooltip with the specified text and style
-
Method Details
-
setActiveDisplay
Register the active tooltip display component- Parameters:
display- The TooltipDisplay component to register
-
setSuppressed
public static void setSuppressed(boolean value) -
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
-