diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2024-10-18 00:25:28 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2024-10-18 00:25:28 -0400 |
commit | b3cc60eba7f1bc646c0cc6356a338fcfeb0ee0f5 (patch) | |
tree | 3fa547dce2fc1a3a7a8fa36c6449848960628b54 /src/main/java/net/sowgro/npehero/gui/LevelSurround.java | |
parent | 28ade1fce71064db5c95a0d69fe94e3097042e36 (diff) | |
download | NPEhero-b3cc60eba7f1bc646c0cc6356a338fcfeb0ee0f5.tar.gz NPEhero-b3cc60eba7f1bc646c0cc6356a338fcfeb0ee0f5.tar.bz2 NPEhero-b3cc60eba7f1bc646c0cc6356a338fcfeb0ee0f5.zip |
Add default color customizationdev2
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gui/LevelSurround.java')
-rwxr-xr-x | src/main/java/net/sowgro/npehero/gui/LevelSurround.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/net/sowgro/npehero/gui/LevelSurround.java b/src/main/java/net/sowgro/npehero/gui/LevelSurround.java index e6cc2f4..4b7cc75 100755 --- a/src/main/java/net/sowgro/npehero/gui/LevelSurround.java +++ b/src/main/java/net/sowgro/npehero/gui/LevelSurround.java @@ -3,6 +3,7 @@ package net.sowgro.npehero.gui; import javafx.animation.AnimationTimer; import javafx.scene.control.Label; import javafx.scene.layout.*; +import javafx.scene.paint.Color; import net.sowgro.npehero.Driver; import net.sowgro.npehero.gameplay.SongPlayer; import javafx.geometry.Insets; @@ -12,6 +13,7 @@ import javafx.scene.text.Text; import net.sowgro.npehero.levelapi.Difficulty; import net.sowgro.npehero.gameplay.ScoreController; import net.sowgro.npehero.main.Page; +import net.sowgro.npehero.main.Settings; import net.sowgro.npehero.main.Sound; public class LevelSurround extends Page @@ -112,7 +114,12 @@ public class LevelSurround extends Page var scale = content.prefHeightProperty().divide(720); game.scaleXProperty().bind(scale); game.scaleYProperty().bind(scale); - game.getStyleClass().add("box"); +// game.getStyleClass().add("box"); +// game.setEffect(new BoxBlur()); +// game.setBackground(Color.WHITE); + BackgroundFill bgf = new BackgroundFill(Color.rgb(0, 0, 0, Settings.gameOpacity), null, null); + game.setBackground(new Background(bgf)); + BorderPane gameHolder = new BorderPane(game); gameHolder.maxHeightProperty().bind(content.prefHeightProperty()); |