diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-21 00:45:19 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-21 00:45:19 -0400 |
commit | f49a73c6af7445bb4ae92fcab87e13abba527048 (patch) | |
tree | 218b7b8c6d64ccd54015d3d47921cb04e11ef503 /src/gui/DebugMenu.java | |
parent | 7c106e7dda744e7d3782737262601de693db0dca (diff) | |
download | NPEhero-f49a73c6af7445bb4ae92fcab87e13abba527048.tar.gz NPEhero-f49a73c6af7445bb4ae92fcab87e13abba527048.tar.bz2 NPEhero-f49a73c6af7445bb4ae92fcab87e13abba527048.zip |
add ui scrollbars, game over menu, new font
Diffstat (limited to '')
-rw-r--r-- | src/gui/DebugMenu.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gui/DebugMenu.java b/src/gui/DebugMenu.java new file mode 100644 index 0000000..c014ee0 --- /dev/null +++ b/src/gui/DebugMenu.java @@ -0,0 +1,41 @@ +package gui; + +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.VBox; +import javafx.stage.Stage; +import main.Level; + +public class DebugMenu +{ + public Stage primaryStage = new Stage(); + public DebugMenu() + { + Button wallpaperTest = new Button(); + wallpaperTest.setText("wallpaper trees"); + wallpaperTest.setOnAction(e -> Driver.setBackground("assets/trees.png")); + + Button wallpaperTest2 = new Button(); + wallpaperTest2.setText("wallpaper water"); + wallpaperTest2.setOnAction(e -> Driver.setBackground("assets/water.png")); + + Button wallpaperTest3 = new Button(); + wallpaperTest3.setText("wallpaper pico"); + wallpaperTest3.setOnAction(e -> Driver.setBackground("assets/pico.png")); + + Button testfinish = new Button(); + testfinish.setText("launch game end"); + Level temp = new Level(); + temp.title = "Title"; + temp.aritst = "artist"; + testfinish.setOnAction(e -> Driver.setMenu(new GameOver(300, new Settings(), temp, "Easy"))); + + VBox primaryPane = new VBox(); + primaryPane.getChildren().addAll(wallpaperTest,wallpaperTest2,wallpaperTest3,testfinish); + + Scene primaryScene = new Scene(primaryPane); + primaryStage.setScene(primaryScene); + primaryStage.setTitle("debug"); + primaryStage.show(); + } +} |