Class HelpWindow
java.lang.Object
com.csse3200.game.components.mainmenu.HelpWindow
HelpWindow manages the display of the help screen with multiple slides
and handles navigation between the slides.
-
Constructor Summary
ConstructorsConstructorDescriptionHelpWindow
(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 TypeMethodDescriptionvoid
setOnClose
(Runnable onClose) Sets the action to be executed when the help window is closed.void
show()
Displays the help window by adding it to the stage and sets keyboard focus for navigation.
-
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
Sets the action to be executed when the help window is closed.- Parameters:
onClose
- The Runnable to be executed on close.
-