Compare commits

...

2 Commits

Author SHA1 Message Date
c828169573 Zusammenführung ClickEvents 2 2021-11-26 11:39:26 +01:00
a420b83875 Zusammenführung ClickEvents 2 2021-11-26 11:37:23 +01:00
10 changed files with 12 additions and 3 deletions

View File

@ -7,4 +7,13 @@
<StackPane prefHeight="800.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.happy_bird.HappyBird" back > <StackPane prefHeight="800.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.happy_bird.HappyBird" back >
<<<<<<< HEAD
=======
<ImageView>
<image>
<Image url="@pics/Background.png"></Image>
</image>
</ImageView>
>>>>>>> 5db5b6bb195a2b7d1296e7d3f9b98d6c75dba2c2
</StackPane> </StackPane>

View File

@ -87,7 +87,7 @@ public class HappyBirdMain extends Application {
menuButton.setLayoutY(625); menuButton.setLayoutY(625);
menuButton.setVisible(false); menuButton.setVisible(false);
Button buttons[] = {startButton, highscoresButton, settingsButton}; //Button buttons[] = {startButton, highscoresButton, settingsButton};
int yPosition = 225; int yPosition = 225;
for (Button button : buttons) { for (Button button : buttons) {
@ -113,7 +113,7 @@ public class HappyBirdMain extends Application {
headline.setText("Start"); headline.setText("Start");
for(Button button : buttons) { for(Button button : buttons) {
button.setVisible(false); button.setVisible(false);
menuButton.setVisible(true);
} }
Label nameLabel = new Label("Name:"); Label nameLabel = new Label("Name:");
@ -165,7 +165,7 @@ public class HappyBirdMain extends Application {
}); });
startButton.setOnAction(event -> {}); //startButton.setOnAction(event -> {});