diff options
author | Zach Jordan <zjordan58@fairport.org> | 2023-05-18 08:21:57 -0400 |
---|---|---|
committer | Zach Jordan <zjordan58@fairport.org> | 2023-05-18 08:21:57 -0400 |
commit | bbad14a33c614ac3480c599dd72a06e14a86295c (patch) | |
tree | c66a48226ad8fc99cd8ebe8894646d6f14228ca7 /src/gui/LevelDetails.java | |
parent | 6e58f0c2ea47c33555e236c5f3bcb64a89c633fc (diff) | |
parent | 33b5b82b1a2c511c6de0c1f744aec1f04bee12f7 (diff) | |
download | NPEhero-bbad14a33c614ac3480c599dd72a06e14a86295c.tar.gz NPEhero-bbad14a33c614ac3480c599dd72a06e14a86295c.tar.bz2 NPEhero-bbad14a33c614ac3480c599dd72a06e14a86295c.zip |
Merge branch 'main' of
https://gitlab.sowgro.net/guitarheros/guitarhero.git into main
Conflicts:
.classpath
Diffstat (limited to '')
-rw-r--r-- | src/gui/LevelDetails.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/LevelDetails.java b/src/gui/LevelDetails.java index dee2f00..5623261 100644 --- a/src/gui/LevelDetails.java +++ b/src/gui/LevelDetails.java @@ -1,5 +1,6 @@ package gui; +import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.control.Button; import javafx.scene.control.ListView; @@ -22,6 +23,7 @@ public class LevelDetails extends VBox details.maxWidthProperty().bind(super.widthProperty()); details.maxHeightProperty().bind(super.heightProperty().multiply(0.75)); details.getStyleClass().add("textBox"); + details.setPadding(new Insets(10)); Button play = new Button(); play.setText("Play"); @@ -31,7 +33,7 @@ public class LevelDetails extends VBox Text desc = new Text(); desc.setText("Select a level from the left pane"); desc.setFill(Color.WHITE); - desc.wrappingWidthProperty().bind(super.widthProperty()); + desc.wrappingWidthProperty().bind(super.widthProperty().subtract(10)); desc.setTextAlignment(TextAlignment.CENTER); details.setAlignment(Pos.CENTER); details.getChildren().addAll(desc); @@ -44,12 +46,12 @@ public class LevelDetails extends VBox title.setText("Test level 1"); title.setFill(Color.WHITE); title.setFont(new Font(50)); - title.wrappingWidthProperty().bind(super.widthProperty()); + title.wrappingWidthProperty().bind(super.widthProperty().subtract(10)); Text desc = new Text(); desc.setText("long description with lots of words. what we write does not actually need to be long i just wan t make sure it can word wrap"); desc.setFill(Color.WHITE); - desc.wrappingWidthProperty().bind(super.widthProperty()); + desc.wrappingWidthProperty().bind(super.widthProperty().subtract(10)); ImageView previewView = new ImageView(); Image preview = new Image("assets/pico.png"); @@ -58,6 +60,7 @@ public class LevelDetails extends VBox previewView.fitWidthProperty().bind(super.widthProperty().multiply(0.5)); previewView.setPreserveRatio(true); details.getChildren().addAll(title,desc,previewView); + play.setOnAction(e -> Driver.setCustomMenu(new LevelSurround())); } VBox rightBox = new VBox(); |