pre-final

This commit is contained in:
2025-11-01 11:54:51 +01:00
parent afd201f250
commit 63475a0c07
4 changed files with 45 additions and 41 deletions

View File

@@ -58,7 +58,7 @@ public class Muehle extends Application {
drawPlayerChips();
//lTop.setAlignment();
setTopLabel("Test Label");
// setTopLabel("Test Label");
primaryStage.setOnCloseRequest(e -> System.exit(0));
@@ -149,49 +149,49 @@ public class Muehle extends Application {
int id_count = 0;
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,0,i,topLeftX,topLeftY+ i*325,game);
MuehleButton button = new MuehleButton(id_count,topLeftX,topLeftY+ i*325,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,1,i,topRightX -230,topLeftY+ i*100,game);
MuehleButton button = new MuehleButton(id_count,topRightX -230,topLeftY+ i*100,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,2,i,topRightX + 140,topLeftY+ i*325,game);
MuehleButton button = new MuehleButton(id_count,topRightX + 140,topLeftY+ i*325,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,0,i,topLeftX + 100,topLeftY+ i*220 +100,game);
MuehleButton button = new MuehleButton(id_count,topLeftX + 100,topLeftY+ i*225 +100,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,2,i,topRightX +40,topLeftY+ i*220 +100,game);
MuehleButton button = new MuehleButton(id_count,topRightX +40,topLeftY+ i*225 +100,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,1,i,topRightX -230,topLeftY+ i*100 + 460,game);
MuehleButton button = new MuehleButton(id_count,topRightX -230,topLeftY+ i*100 + 460,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,0,i,topLeftX +200,topLeftY+ i*130 +200,game);
MuehleButton button = new MuehleButton(id_count,topLeftX +200,topLeftY+ i*130 +200,game);
id_count++;
buttons.add(button);
}
for (int i = 0; i < 3; i++) {
MuehleButton button = new MuehleButton(id_count,2,i,topLeftX +540,topLeftY+ i*130 +200,game);
MuehleButton button = new MuehleButton(id_count,topLeftX +540,topLeftY+ i*130 +200,game);
id_count++;
buttons.add(button);
}
@@ -236,6 +236,9 @@ public class Muehle extends Application {
game_board.getChildren().add(newShape);
}
// end methods