Package com.mg105.user_interface
Class TutorialTextWindow
java.lang.Object
com.mg105.user_interface.TutorialTextWindow
- All Implemented Interfaces:
Toggleable
Create a window for the tutorial scenes
-
Constructor Summary
ConstructorDescriptionTutorialTextWindow
(TutorialTextController textController, @NotNull TutorialTextDisplay tutorialDisplay) Window for the tutorial -
Method Summary
-
Constructor Details
-
TutorialTextWindow
public TutorialTextWindow(TutorialTextController textController, @NotNull @NotNull TutorialTextDisplay tutorialDisplay) Window for the tutorial- Parameters:
textController
- the controller for the tutorialtutorialDisplay
- the ui that displays the tutorial
-
-
Method Details
-
getScene
@NotNull public @NotNull javafx.scene.Scene getScene()Get the scene of this toggleable object. It is this scene that will be displayed.- Specified by:
getScene
in interfaceToggleable
- Returns:
- the scene to be displayed.
-
toggle
public void toggle(boolean isVisible) Set the visibility of this component.- Specified by:
toggle
in interfaceToggleable
- Parameters:
isVisible
- true if the Toggleable is now visible, false otherwise. If false the Toggleable is expected to do nothing on ANY user inputs.
-