diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-23 00:39:57 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-23 00:39:57 -0400 |
commit | 005c645b3cd991079dfd9bac2f207cdd2068d161 (patch) | |
tree | ed82f11d248a1a0e08ea0ed82380913250a0f278 /src/gui/DebugMenu.java | |
parent | f941b529f1cb12312041516e6799ece0f6df2cac (diff) | |
download | NPEhero-005c645b3cd991079dfd9bac2f207cdd2068d161.tar.gz NPEhero-005c645b3cd991079dfd9bac2f207cdd2068d161.tar.bz2 NPEhero-005c645b3cd991079dfd9bac2f207cdd2068d161.zip |
finish gui, add new leaderboard system, redesign settings, switch lists to tables
Diffstat (limited to 'src/gui/DebugMenu.java')
-rw-r--r-- | src/gui/DebugMenu.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/DebugMenu.java b/src/gui/DebugMenu.java index 79545e9..83857b8 100644 --- a/src/gui/DebugMenu.java +++ b/src/gui/DebugMenu.java @@ -4,6 +4,7 @@ import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.VBox; import javafx.stage.Stage; +import main.Difficulty; import main.Level; public class DebugMenu @@ -33,12 +34,16 @@ public class DebugMenu Button testfinish = new Button(); testfinish.setText("launch game end"); //create a sample level for testing - Level temp = new Level(); - temp.title = "Title"; - temp.aritst = "artist"; - testfinish.setOnAction(e -> Driver.setMenu(new GameOver(temp, "Easy", new Settings(), 300))); + Level temp = new Level("Title", "artist"); + Difficulty temp2 = new Difficulty(); + temp2.title = "Easy"; + testfinish.setOnAction(e -> Driver.setMenu(new GameOver(temp, temp2, new Settings(), 300))); - primaryPane.getChildren().addAll(wallpaperTest,wallpaperTest2,wallpaperTest3,testfinish); + Button testVol = new Button(); + testVol.setText("print volumes"); + testVol.setOnAction(e -> System.out.println("sfx:"+Driver.settingsController.effectsVol+" msc:"+Driver.settingsController.musicVol)); + + primaryPane.getChildren().addAll(wallpaperTest,wallpaperTest2,wallpaperTest3,testfinish,testVol); Scene primaryScene = new Scene(primaryPane); primaryStage.setScene(primaryScene); |