Merging
This commit is contained in:
commit
e25465873b
@ -7,13 +7,10 @@
|
|||||||
|
|
||||||
<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>
|
<ImageView>
|
||||||
<image>
|
<image>
|
||||||
<Image url="@pics/Background.png"></Image>
|
<Image url="@pics/Background.png"></Image>
|
||||||
</image>
|
</image>
|
||||||
</ImageView>
|
</ImageView>
|
||||||
|
|
||||||
>>>>>>> 5db5b6bb195a2b7d1296e7d3f9b98d6c75dba2c2
|
|
||||||
</StackPane>
|
</StackPane>
|
||||||
|
@ -86,12 +86,18 @@ public class HappyBirdMain extends Application {
|
|||||||
menuButton.setLayoutX(575);
|
menuButton.setLayoutX(575);
|
||||||
menuButton.setLayoutY(625);
|
menuButton.setLayoutY(625);
|
||||||
menuButton.setVisible(false);
|
menuButton.setVisible(false);
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> 6697cdef8e121846595c7e99f811d1088227faa6
|
||||||
startGame.setVisible(false);
|
startGame.setVisible(false);
|
||||||
|
|
||||||
|
|
||||||
//Button buttons[] = {startButton, highscoresButton, settingsButton};
|
//Button buttons[] = {startButton, highscoresButton, settingsButton};
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> 6697cdef8e121846595c7e99f811d1088227faa6
|
||||||
|
|
||||||
int yPosition = 225;
|
int yPosition = 225;
|
||||||
for (Button button : buttons) {
|
for (Button button : buttons) {
|
||||||
@ -113,12 +119,18 @@ public class HappyBirdMain extends Application {
|
|||||||
|
|
||||||
startGame.setVisible(false);
|
startGame.setVisible(false);
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> 6697cdef8e121846595c7e99f811d1088227faa6
|
||||||
Label nameLabel = new Label("Name:");
|
Label nameLabel = new Label("Name:");
|
||||||
Label acronymLabel = new Label("Kürzel:");
|
Label acronymLabel = new Label("Kürzel:");
|
||||||
|
|
||||||
Label startLabels[] = {nameLabel, acronymLabel};
|
Label startLabels[] = {nameLabel, acronymLabel};
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> 6697cdef8e121846595c7e99f811d1088227faa6
|
||||||
startButton.setOnAction(event -> {
|
startButton.setOnAction(event -> {
|
||||||
headline.setText("Start");
|
headline.setText("Start");
|
||||||
for (Button button : buttons) {
|
for (Button button : buttons) {
|
||||||
@ -128,7 +140,7 @@ public class HappyBirdMain extends Application {
|
|||||||
});
|
});
|
||||||
|
|
||||||
int yPositionStartLabels = 225;
|
int yPositionStartLabels = 225;
|
||||||
for(Label label : startLabels) {
|
for (Label label : startLabels) {
|
||||||
label.setPrefSize(250, 50);
|
label.setPrefSize(250, 50);
|
||||||
label.setStyle("-fx-background-color: #DED894; " +
|
label.setStyle("-fx-background-color: #DED894; " +
|
||||||
"-fx-text-fill: #000000; " +
|
"-fx-text-fill: #000000; " +
|
||||||
@ -154,7 +166,7 @@ public class HappyBirdMain extends Application {
|
|||||||
TextField inputFields[] = {name, acronym};
|
TextField inputFields[] = {name, acronym};
|
||||||
|
|
||||||
int yPositionInputFields = 290;
|
int yPositionInputFields = 290;
|
||||||
for(TextField feld : inputFields) {
|
for (TextField feld : inputFields) {
|
||||||
feld.setPrefSize(250, 50);
|
feld.setPrefSize(250, 50);
|
||||||
feld.setStyle("-fx-font-size: 20px;" +
|
feld.setStyle("-fx-font-size: 20px;" +
|
||||||
"-fx-font-weight: bold;");
|
"-fx-font-weight: bold;");
|
||||||
@ -167,6 +179,7 @@ public class HappyBirdMain extends Application {
|
|||||||
feld.setVisible(false);
|
feld.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
startButton.setOnAction(event -> {
|
startButton.setOnAction(event -> {
|
||||||
headline.setText("Start");
|
headline.setText("Start");
|
||||||
for(Button button : buttons) {
|
for(Button button : buttons) {
|
||||||
@ -188,9 +201,7 @@ public class HappyBirdMain extends Application {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//startGame.setOnAction(event -> {});
|
//startGame.setOnAction(event -> {});
|
||||||
|
|
||||||
//startButton.setOnAction(event -> {});
|
//startButton.setOnAction(event -> {});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user