Skip to content

Commit

Permalink
ScoreTile text scales now
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellGray100 committed Sep 25, 2021
1 parent 2314154 commit a8be97f
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 @@ -282,6 +282,8 @@ private class ScoreTile extends StackPane {
private Text score = new Text();

public ScoreTile(Color color, String input, Stage primaryStage) {
score.scaleXProperty().bind(primaryStage.widthProperty().multiply(.001));
score.scaleYProperty().bind(primaryStage.heightProperty().multiply(.002));
Rectangle border = new Rectangle(450, 100);
border.widthProperty().bind(primaryStage.widthProperty().multiply(.3));

Expand Down

0 comments on commit a8be97f

Please sign in to comment.