menu #43

Merged
Mat_02 merged 20 commits from menu into master 2023-05-09 15:52:14 +02:00
Member

Make the interface for the game :
The MenuAcceuil is the fisrt page that the user will see
and The MenuLevel generate the Interface to show all the button to access to all level
TODO : Make levels and link them to buttons

Make the interface for the game : The MenuAcceuil is the fisrt page that the user will see and The MenuLevel generate the Interface to show all the button to access to all level TODO : Make levels and link them to buttons
Mat_02 added 15 commits 2023-05-05 11:57:52 +02:00
tonitch added 1 commit 2023-05-05 12:11:21 +02:00
Merge branch 'master' into menu
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
752c722b0c
Mat_02 added 1 commit 2023-05-05 12:18:59 +02:00
Add the picture of background
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
1af5db700e
tonitch approved these changes 2023-05-05 12:35:46 +02:00
tonitch left a comment
Owner

super work, just some comments

super work, just some comments
@ -25,0 +24,4 @@
root = new MenuAcceuil();
stage = primaryStage;
stage.setTitle("ROAD TO MASTER");
stage.setScene(new Scene(root));
Owner

tu pourrais faire un appel à #L33 (switchRoot) dans un premier temps ca ne changer rien mais si on change la façon de changer de scene un moment ca sera alors plus cohérent!

tu pourrais faire un appel à #L33 (switchRoot) dans un premier temps ca ne changer rien mais si on change la façon de changer de scene un moment ca sera alors plus cohérent!
Owner

en gros au lieu de faire

        stage.setScene(new Scene(root));

Tu pourrais faire

        switchRoot(root);

Ca ne changerait pas grand chose pour l'instant mais si plus tard dans le code on a besoin de changer le fonctionnement de Scene par expemple, alors ca serait plus simple à changer.

en gros au lieu de faire ```java stage.setScene(new Scene(root)); ``` Tu pourrais faire ```java switchRoot(root); ``` Ca ne changerait pas grand chose pour l'instant mais si plus tard dans le code on a besoin de changer le fonctionnement de Scene par expemple, alors ca serait plus simple à changer.
@ -29,2 +35,3 @@
}
public static void main(String[] args) {
launch();
launch(args);
Owner

pourquoi ?

pourquoi ?
tonitch marked this conversation as resolved
@ -0,0 +11,4 @@
private Button Play;
public static Button SelectLevel;
private Button Trophy;
private Label Title;
Owner

Ces Variable (sauf selectlevel) peuvent

Ces Variable (sauf `selectlevel`) peuvent
tonitch marked this conversation as resolved
@ -0,0 +30,4 @@
setAlignment(Play,Pos.CENTER);
setAlignment(SelectLevel,Pos.CENTER);
setAlignment(Trophy,Pos.CENTER);
//Menu.getStylesheets().add("style.css"); todo creat a file css
Owner

a enlever

a enlever
tonitch marked this conversation as resolved
@ -0,0 +34,4 @@
setPadding(new Insets(20,60,20,60));
SelectLevel.setOnAction(event -> Controller.switchRoot(new MenuLevel(1)));
getStyleClass().add("BorderPane");
getStylesheets().add(String.valueOf(getClass().getResource("StyleMenuAcceuil.css")));
Owner

pour plus de lisibilitée quelques espaces seraient cool

pour plus de lisibilitée quelques espaces seraient cool
tonitch marked this conversation as resolved
@ -0,0 +13,4 @@
public Button[] Days = new Button[3];
public int StartLevel;
public ColumnConstraints[] Columns = new ColumnConstraints[3];
public RowConstraints[] Rows = new RowConstraints[5];
Owner

Peuvent être locales

Peuvent être locales
tonitch marked this conversation as resolved
@ -0,0 +98,4 @@
Owner

pourquoi y'a plein d'espaces

pourquoi y'a plein d'espaces
tonitch marked this conversation as resolved
Mat_02 added 1 commit 2023-05-06 21:46:08 +02:00
Correct all thing say expect the one about switchRoot I didn't understand (Btw add some comment)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
a043cb487f
tonitch approved these changes 2023-05-07 10:46:09 +02:00
tonitch left a comment
Owner

juste le switchroot à voir si tu est d'accord ?

juste le switchroot à voir si tu est d'accord ?
Mat_02 added 1 commit 2023-05-09 12:56:42 +02:00
change the switchRoot method
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
af3489d078
tonitch added 1 commit 2023-05-09 13:10:06 +02:00
Merge branch 'menu'
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
24730a1362
tonitch approved these changes 2023-05-09 15:51:40 +02:00
Mat_02 merged commit a472df26ed into master 2023-05-09 15:52:14 +02:00
tonitch deleted branch menu 2023-05-09 15:53:51 +02:00
Sign in to join this conversation.
No description provided.