aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/sowgro/npehero/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gui')
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gui/GameOver.java2
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gui/LevelDetails.java2
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gui/LevelSurround.java8
3 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/net/sowgro/npehero/gui/GameOver.java b/src/main/java/net/sowgro/npehero/gui/GameOver.java
index 0ae3daf..3b3c8bb 100755
--- a/src/main/java/net/sowgro/npehero/gui/GameOver.java
+++ b/src/main/java/net/sowgro/npehero/gui/GameOver.java
@@ -99,7 +99,7 @@ public class GameOver extends Page
replay.setText("Replay");
replay.setOnAction(e -> {
Sound.playSfx(Sound.FORWARD);
- Driver.setMenu(new LevelSurround(level, diff, prev));
+ Driver.setMenu(new LevelSurround(diff, prev));
});
BorderPane buttonBox = new BorderPane();
diff --git a/src/main/java/net/sowgro/npehero/gui/LevelDetails.java b/src/main/java/net/sowgro/npehero/gui/LevelDetails.java
index 11602aa..07e0ae4 100755
--- a/src/main/java/net/sowgro/npehero/gui/LevelDetails.java
+++ b/src/main/java/net/sowgro/npehero/gui/LevelDetails.java
@@ -92,7 +92,7 @@ public class LevelDetails extends VBox
play.disableProperty().bind(diffToggleGroup.selectedToggleProperty().isNull()); //disables play button when no difficulty is selected
play.setOnAction(e -> {
Sound.playSfx(Sound.FORWARD);
- Driver.setMenu(new LevelSurround(level, (Difficulty)diffToggleGroup.getSelectedToggle().getUserData(), ls));
+ Driver.setMenu(new LevelSurround((Difficulty)diffToggleGroup.getSelectedToggle().getUserData(), ls));
});
leaderboard.disableProperty().bind(diffToggleGroup.selectedToggleProperty().isNull());
diff --git a/src/main/java/net/sowgro/npehero/gui/LevelSurround.java b/src/main/java/net/sowgro/npehero/gui/LevelSurround.java
index 8ab722d..09eeaa0 100755
--- a/src/main/java/net/sowgro/npehero/gui/LevelSurround.java
+++ b/src/main/java/net/sowgro/npehero/gui/LevelSurround.java
@@ -21,10 +21,10 @@ public class LevelSurround extends Page
{
private final HBox content = new HBox();
- public LevelSurround(Level level, Difficulty difficulty, Page prev)
+ public LevelSurround(Difficulty difficulty, Page prev)
{
ScoreController sc = new ScoreController();
- SongPlayer game = new SongPlayer(level, difficulty, prev, sc);
+ SongPlayer game = new SongPlayer(difficulty, prev, sc);
Button exit = new Button();
exit.setText("Back");
@@ -40,11 +40,11 @@ public class LevelSurround extends Page
buttonBox.setSpacing(10);
Text title = new Text();
- title.setText(level.title);
+ title.setText(difficulty.level.title);
title.getStyleClass().add("t2");
Text artist = new Text();
- artist.setText(level.artist+" - "+difficulty.title);
+ artist.setText(difficulty.level.artist+" - "+difficulty.title);
artist.getStyleClass().add("t3");
VBox titleTextBox = new VBox();