aboutsummaryrefslogtreecommitdiff
path: root/src/gui/LevelSurround.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-05-24 17:24:54 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-05-24 17:24:54 -0400
commit9c7aa6cab36884d4dda8b3dbf50791f2e2d810d2 (patch)
treeb2b5e31b2fe06db1c60c79594e7a13e6cc261377 /src/gui/LevelSurround.java
parentcc6ed32bb9da1319834d06d78cee7a8c4050334e (diff)
downloadNPEhero-9c7aa6cab36884d4dda8b3dbf50791f2e2d810d2.tar.gz
NPEhero-9c7aa6cab36884d4dda8b3dbf50791f2e2d810d2.tar.bz2
NPEhero-9c7aa6cab36884d4dda8b3dbf50791f2e2d810d2.zip
add testSongPlayer (copy of newSongPlayer) to test the song player inside levelSurround
Diffstat (limited to '')
-rw-r--r--src/gui/LevelSurround.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java
index 2f9ec75..512a088 100644
--- a/src/gui/LevelSurround.java
+++ b/src/gui/LevelSurround.java
@@ -1,6 +1,7 @@
package gui;
import fallTest.newSongPlayer;
+import fallTest.testSongPlayer;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
@@ -82,14 +83,14 @@ public class LevelSurround extends Pane
comboTextBox.getChildren().addAll(comboLabel,comboDisplay);
comboTextBox.setPadding(new Insets(10));
- Pane game = new Pane();
+ testSongPlayer game = new testSongPlayer(level, difficulty, prev, sc);
game.minWidthProperty().bind(super.prefHeightProperty().multiply(0.66));
game.minHeightProperty().bind(super.prefHeightProperty());
game.getStyleClass().add("box");
+
comboTextBox.minWidthProperty().bind(super.prefWidthProperty().subtract(game.minWidthProperty()).divide(2));
scoreTextBox.minWidthProperty().bind(super.prefWidthProperty().subtract(game.minWidthProperty()).divide(2));
- new fallTest.newSongPlayer(level, difficulty, prev, sc);
HBox centerBox = new HBox();
centerBox.getChildren().addAll(comboTextBox,game, scoreTextBox);