From e246c26e4b630fce269a90514185972703973fea Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 23 May 2023 00:57:47 -0400 Subject: make leaderboard add button work --- src/gui/LevelSurround.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/LevelSurround.java') diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java index 7cd4b71..ba3b5fd 100644 --- a/src/gui/LevelSurround.java +++ b/src/gui/LevelSurround.java @@ -116,5 +116,10 @@ public class LevelSurround extends Pane printD.setText(level.getTitle() + " print debug"); printD.setOnAction(e -> sc.print()); Driver.debug.addButton(printD); + + Button testfinish = new Button(); + testfinish.setText(level.getTitle() + "launch game end"); + testfinish.setOnAction(e -> Driver.setMenu(new GameOver(level, difficulty, prev, sc.getScore()))); + Driver.debug.addButton(testfinish); } } \ No newline at end of file -- cgit v1.2.3