From 2dd291f259734564b8d507a10b29602ef3a4e462 Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 30 Aug 2024 12:58:33 -0400 Subject: SongPlayer rewrite pt.1 - change from variables to array of objects --- src/main/java/net/sowgro/npehero/gui/LevelSurround.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/net/sowgro/npehero/gui/LevelSurround.java') 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(); -- cgit v1.2.3