Package com.mg105.user_interface
Class WinMenu
java.lang.Object
com.mg105.user_interface.WinMenu
- All Implemented Interfaces:
Toggleable
A menu that is shown to the player after they have reached the final room
-
Constructor Summary
ConstructorDescriptionWinMenu
(@NotNull ReplayGeneratorButton ReplayButton) Shows a button that congratulates you and lets you replay the game -
Method Summary
-
Constructor Details
-
WinMenu
Shows a button that congratulates you and lets you replay the game- Parameters:
ReplayButton
- the button responsible for replaying the game
-
-
Method Details
-
getScene
@NotNull public @NotNull javafx.scene.Scene getScene()Get scene of the WinMenu- Specified by:
getScene
in interfaceToggleable
- Returns:
- the scene that WinMenu is in
-
toggle
public void toggle(boolean isVisible) Toggle the WinMenu- Specified by:
toggle
in interfaceToggleable
- Parameters:
isVisible
- whether the menu is visible
-