Class TooltipSystem.TooltipManager

java.lang.Object
com.csse3200.game.components.tooltip.TooltipSystem.TooltipManager
Enclosing class:
TooltipSystem

public static class TooltipSystem.TooltipManager extends Object
Global manager for coordinating between TooltipComponent and TooltipDisplay. Uses static methods for simple global communication.
  • Constructor Details

    • TooltipManager

      public TooltipManager()
  • Method Details

    • setActiveDisplay

      public static void setActiveDisplay(TooltipSystem.TooltipDisplay display)
      Register the active tooltip display component
      Parameters:
      display - The TooltipDisplay component to register
    • showTooltip

      public static void showTooltip(String text, TooltipSystem.TooltipStyle style)
      Show a tooltip with the specified text and style
      Parameters:
      text - The text to display
      style - The visual style to use
    • hideTooltip

      public static void hideTooltip()
      Hide the currently displayed tooltip