ScreenLevelFinish #64

Merged
Mat_02 merged 11 commits from ScreenLevelFinish into master 2023-05-18 19:03:56 +02:00
Showing only changes of commit c867ff70ce - Show all commits

View File

@ -20,8 +20,10 @@ public class ScreenLevelFinish extends StackPane {
BckMenu.setFont(Font.font(25));
Button ChooseLvl = new Button("Choose level");
ChooseLvl.setFont(Font.font(25));
BckMenu.setOnAction(event -> Controller.switchRoot(new MenuAccueil()));
ChooseLvl.setOnAction(event -> Controller.switchRoot(new MenuLevel(1)));
getChildren().addAll(BckMenu,ChooseLvl,CongraMess);
setAlignment(BckMenu, Pos.CENTER_RIGHT);
setAlignment(ChooseLvl, Pos.CENTER_LEFT);
@ -29,9 +31,8 @@ public class ScreenLevelFinish extends StackPane {
setMargin(BckMenu, new Insets(0,300,0,0 ));
setMargin(ChooseLvl,new Insets(0,0,0,300));
setMargin(CongraMess,new Insets(300,0,0,0));
getStyleClass().add("StackPane");
getStylesheets().add(String.valueOf(getClass().getResource("StyleMenuAcceuil.css")));
}
}