aboutsummaryrefslogtreecommitdiff
path: root/src/gui/LevelSurround.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-05-23 00:57:47 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-05-23 00:57:47 -0400
commite246c26e4b630fce269a90514185972703973fea (patch)
treeb316e1262f1d1f57369fb07b1a1d72b7475ad2eb /src/gui/LevelSurround.java
parent931e9b6410ee40551237d9956caeeb164adf98ba (diff)
downloadNPEhero-e246c26e4b630fce269a90514185972703973fea.tar.gz
NPEhero-e246c26e4b630fce269a90514185972703973fea.tar.bz2
NPEhero-e246c26e4b630fce269a90514185972703973fea.zip
make leaderboard add button work
Diffstat (limited to '')
-rw-r--r--src/gui/LevelSurround.java5
1 files changed, 5 insertions, 0 deletions
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