aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/sowgro/npehero/gui/LevelSurround.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2024-08-30 12:58:33 -0400
committersowgro <tpoke.ferrari@gmail.com>2024-08-30 12:58:33 -0400
commit2dd291f259734564b8d507a10b29602ef3a4e462 (patch)
tree65b542541e1bc2a2198c86be7e09f97f335e5a2d /src/main/java/net/sowgro/npehero/gui/LevelSurround.java
parent69f69143f5604626ded3c26ee754b94eaf3c4f15 (diff)
downloadNPEhero-2dd291f259734564b8d507a10b29602ef3a4e462.tar.gz
NPEhero-2dd291f259734564b8d507a10b29602ef3a4e462.tar.bz2
NPEhero-2dd291f259734564b8d507a10b29602ef3a4e462.zip
SongPlayer rewrite pt.1
- change from variables to array of objects
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gui/LevelSurround.java')
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gui/LevelSurround.java8
1 files changed, 4 insertions, 4 deletions
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();