Skip to content

Commit

Permalink
Dynamically scaled endGame text
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellGray100 committed Sep 25, 2021
1 parent a8be97f commit 5d3362b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/application/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d3362b

Please sign in to comment.