aboutsummaryrefslogtreecommitdiff
path: root/src/gui
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
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 'src/gui')
-rw-r--r--src/gui/LevelSurround.java5
-rw-r--r--src/gui/style.css10
2 files changed, 8 insertions, 7 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);
diff --git a/src/gui/style.css b/src/gui/style.css
index 04d7031..304ee9a 100644
--- a/src/gui/style.css
+++ b/src/gui/style.css
@@ -235,11 +235,11 @@ Slider:focused .thumb{
/* debug */
.debug {
- -fx-background-radius: 5;
- -fx-background-color: rgba(255, 0, 0, 0.281);
- -fx-border-color: red;
- -fx-text-fill: white;
- -fx-border-width: 20;
+ /* -fx-background-radius: 5; */
+ -fx-background-color: rgb(255, 0, 0);
+ /* -fx-border-color: red; */
+ /* -fx-text-fill: white; */
+ /* -fx-border-width: 20; */
}