ScreenLevelFinish #64
@ -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")));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user