Class HelpWindow

java.lang.Object
com.csse3200.game.components.mainmenu.HelpWindow

public class HelpWindow extends Object
HelpWindow manages the display of the help screen with multiple slides and handles navigation between the slides.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HelpWindow(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.utils.Drawable settingDrawable)
    Constructor to create a HelpWindow instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets the action to be executed when the help window is closed.
    void
    Displays the help window by adding it to the stage and sets keyboard focus for navigation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HelpWindow

      public HelpWindow(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.utils.Drawable settingDrawable)
      Constructor to create a HelpWindow instance.
      Parameters:
      skin - Skin to style the UI elements.
      stage - The Stage to which the help window will be added.
      settingDrawable - Drawable background for the help window.
  • Method Details

    • show

      public void show()
      Displays the help window by adding it to the stage and sets keyboard focus for navigation.
    • setOnClose

      public void setOnClose(Runnable onClose)
      Sets the action to be executed when the help window is closed.
      Parameters:
      onClose - The Runnable to be executed on close.