Verbesserung einer Formatierungsfunktion

This commit is contained in:
Mats Pape 2022-02-07 15:01:37 +01:00
parent 79db8a088a
commit fcb650ffef
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ public class FormatingClass {
/*** /***
* formatiert den End-Screen * formatiert den End-Screen
*/ */
public void endScreenFormating(Pane endScreen, Pane pause, Label endScreenHeadline, Label currentScoreEndscreenLabel) { public void endScreenFormating(Pane endScreen, Label endScreenHeadline, Label currentScoreEndscreenLabel) {
/*Endscreen-Pane formatieren*/ /*Endscreen-Pane formatieren*/
endScreen.setPrefSize(400, 500); endScreen.setPrefSize(400, 500);
endScreen.setLayoutX(200); endScreen.setLayoutX(200);

View File

@ -1034,7 +1034,7 @@ public class HappyBirdMain extends Application {
* sich seine persänlichen Highscores anzeigen zu lassen * sich seine persänlichen Highscores anzeigen zu lassen
*/ */
public void generateEndScreen() { public void generateEndScreen() {
formatingClass.endScreenFormating(endScreen, pause, endScreenHeadline, currentScoreEndscreenLabel); formatingClass.endScreenFormating(endScreen, endScreenHeadline, currentScoreEndscreenLabel);
/*Name und Highscores ausblenden, Pause-Button ausblenden*/ /*Name und Highscores ausblenden, Pause-Button ausblenden*/
nameLabel.setVisible(false); nameLabel.setVisible(false);
highscoreLabel.setVisible(false); highscoreLabel.setVisible(false);