Compare commits

..

No commits in common. "95f72fe4e80052befaeef4fe0bfc91e52d964bb0" and "c82816957310f4cb126c980ad371abcdaba0d6de" have entirely different histories.

9 changed files with 40 additions and 75 deletions

View File

@ -69,9 +69,9 @@ public class HappyBirdMain extends Application {
Button startButton = new Button("START"); Button startButton = new Button("START");
Button highscoresButton = new Button("HIGHSCORES"); Button highscoresButton = new Button("HIGHSCORES");
Button settingsButton = new Button("EINSTELLUNGEN"); Button settingsButton = new Button("EINSTELLUNGEN");
Button startGame = new Button("SPIEL STARTEN"); Button spielStarten = new Button("SPIEL STARTEN");
Button buttons[] = {startButton, highscoresButton, settingsButton, startGame}; Button buttons[] = {startButton, highscoresButton, settingsButton, spielStarten};
Button menuButton = new Button("ZURÜCK"); Button menuButton = new Button("ZURÜCK");
menuButton.setStyle("-fx-background-color: #e86000; " + menuButton.setStyle("-fx-background-color: #e86000; " +
"-fx-text-fill: #FFFFFF; " + "-fx-text-fill: #FFFFFF; " +
@ -86,12 +86,8 @@ public class HappyBirdMain extends Application {
menuButton.setLayoutX(575); menuButton.setLayoutX(575);
menuButton.setLayoutY(625); menuButton.setLayoutY(625);
menuButton.setVisible(false); menuButton.setVisible(false);
<<<<<<< HEAD
startGame.setVisible(false);
=======
//Button buttons[] = {startButton, highscoresButton, settingsButton}; //Button buttons[] = {startButton, highscoresButton, settingsButton};
>>>>>>> c82816957310f4cb126c980ad371abcdaba0d6de
int yPosition = 225; int yPosition = 225;
for (Button button : buttons) { for (Button button : buttons) {
@ -111,21 +107,19 @@ public class HappyBirdMain extends Application {
"-fx-background-radius: 20px;"); "-fx-background-radius: 20px;");
} }
startGame.setVisible(false); spielStarten.setVisible(false);
<<<<<<< HEAD
Label nameLabel = new Label("Name:");
Label acronymLabel = new Label("Kürzel:");
Label startLabels[] = {nameLabel, acronymLabel};
=======
startButton.setOnAction(event -> { startButton.setOnAction(event -> {
headline.setText("Start"); headline.setText("Start");
for(Button button : buttons) { for(Button button : buttons) {
button.setVisible(false); button.setVisible(false);
menuButton.setVisible(true); menuButton.setVisible(true);
} }
>>>>>>> c82816957310f4cb126c980ad371abcdaba0d6de
Label nameLabel = new Label("Name:");
Label acronymLabel = new Label("Kürzel:");
Label startLabels[] = {nameLabel, acronymLabel};
int yPositionStartLabels = 225; int yPositionStartLabels = 225;
for(Label label : startLabels) { for(Label label : startLabels) {
@ -145,7 +139,6 @@ public class HappyBirdMain extends Application {
yPositionStartLabels += 150; yPositionStartLabels += 150;
pane.getChildren().add(label); pane.getChildren().add(label);
label.setVisible(false);
} }
TextField name = new TextField(); TextField name = new TextField();
@ -164,35 +157,15 @@ public class HappyBirdMain extends Application {
yPositionInputFields += 150; yPositionInputFields += 150;
pane.getChildren().add(feld); pane.getChildren().add(feld);
feld.setVisible(false);
} }
startButton.setOnAction(event -> { spielStarten.setVisible(true);
headline.setText("Start");
for(Button button : buttons) {
button.setVisible(false);
} spielStarten.setLayoutY(520);
startGame.setVisible(true);
menuButton.setVisible(true);
startGame.setLayoutY(520);
for(TextField feld : inputFields) {
feld.setVisible(true);
}
for (Label label : startLabels )
{
label.setVisible(true);
}
}); });
<<<<<<< HEAD
startGame.setOnAction(event -> {});
=======
//startButton.setOnAction(event -> {}); //startButton.setOnAction(event -> {});
>>>>>>> c82816957310f4cb126c980ad371abcdaba0d6de
@ -248,14 +221,6 @@ public class HappyBirdMain extends Application {
menuButton.setVisible(false); menuButton.setVisible(false);
soundSlider.setVisible(false); soundSlider.setVisible(false);
soundLabel.setVisible(false); soundLabel.setVisible(false);
startGame.setVisible(false);
for(TextField feld : inputFields) {
feld.setVisible(false);
}
for (Label label : startLabels )
{
label.setVisible(false);
}
}); });
stage.show(); stage.show();