aboutsummaryrefslogtreecommitdiff
path: root/src/gui/LevelSurround.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/LevelSurround.java')
-rw-r--r--src/gui/LevelSurround.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java
index c89ef6d..3739879 100644
--- a/src/gui/LevelSurround.java
+++ b/src/gui/LevelSurround.java
@@ -35,15 +35,12 @@ public class LevelSurround extends Pane
exit.setText("Back");
exit.setOnAction(e -> {
Driver.setMenu(prev);
- Driver.menuFx.play("src/assets/MenuBackward.wav");
+ Driver.soundController.playSfx("backward");
game.cancel();
});
- Button pause = new Button();
- pause.setText("Pause");
-
HBox buttonBox = new HBox();
- buttonBox.getChildren().addAll(exit,pause);
+ buttonBox.getChildren().addAll(exit);
buttonBox.setAlignment(Pos.TOP_LEFT);
buttonBox.setSpacing(10);