Build Box UI improvments

This commit is contained in:
Stone_Red
2022-05-13 12:23:12 +02:00
parent e53db4256b
commit 7a6991ccd7
2 changed files with 4 additions and 1 deletions
@@ -17,7 +17,7 @@ public class HubDisplay extends Entity {
Rectangle r = new Rectangle(Chunk.ENTITY_SIZE, Chunk.ENTITY_SIZE); Rectangle r = new Rectangle(Chunk.ENTITY_SIZE, Chunk.ENTITY_SIZE);
r.setFill(Color.PINK); r.setFill(Color.PINK);
Text text = new Text("yes\nthis is a test sentence"); Text text = new Text("yes\nthis is a test");
text.setWrappingWidth(Chunk.ENTITY_SIZE); text.setWrappingWidth(Chunk.ENTITY_SIZE);
StackPane stackPane = new StackPane(); StackPane stackPane = new StackPane();
@@ -17,6 +17,9 @@ public class BuildBox extends javafx.scene.Group {
hbox.prefWidth(Double.POSITIVE_INFINITY); hbox.prefWidth(Double.POSITIVE_INFINITY);
pane.setContent(hbox); pane.setContent(hbox);
pane.setStyle("-fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color;" +
"-fx-background-insets: 0, 1, 2;" +
"-fx-background-radius: 5, 4, 3;");
this.getChildren().add(pane); this.getChildren().add(pane);