From 5d3362b7aec01cddd9d41ff4b94d82d41920cbe1 Mon Sep 17 00:00:00 2001 From: Mitchell Date: Sat, 25 Sep 2021 01:21:15 -0400 Subject: [PATCH] Dynamically scaled endGame text --- src/application/Main.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/application/Main.java b/src/application/Main.java index 28be5d3..466ac5a 100644 --- a/src/application/Main.java +++ b/src/application/Main.java @@ -195,6 +195,8 @@ private Parent createContent(Stage primaryStage) throws FileNotFoundException { // endGameText.setText("test"); endGameText.setFont(new Font(100)); endGameText.setTextAlignment(TextAlignment.CENTER); + endGameText.scaleXProperty().bind(primaryStage.widthProperty().multiply(.0005)); + endGameText.scaleYProperty().bind(primaryStage.heightProperty().multiply(.001)); indexesWithScore.add(endGameText, 0, 0, 2, 2); endGameText.setFill(Color.RED); promotionGrid.setAlignment(Pos.CENTER);