Modification menu jouer
This commit is contained in:
parent
ff2448dc86
commit
c75731439b
BIN
src/.DS_Store
vendored
BIN
src/.DS_Store
vendored
Binary file not shown.
@ -15,16 +15,12 @@ public class PlayButtonClickListener implements ActionListener {
|
||||
Button sourceButton = (Button) e.getSource();
|
||||
String buttonText = sourceButton.getText();
|
||||
|
||||
if (buttonText.equals("Jouer sans grille")) {
|
||||
|
||||
}
|
||||
|
||||
else if (buttonText.equals("Générer une grille")) {
|
||||
if (buttonText.equals("Générer une grille")) {
|
||||
Window.removeAllComponents(this.window);
|
||||
new GridMakeUserInterfaceView(this.window);
|
||||
|
||||
} else if (buttonText.equals("Charger une grille")) {
|
||||
|
||||
}
|
||||
else if (buttonText.equals("Jouer")) {
|
||||
System.out.println("Bouton jouer presser");
|
||||
} else if (buttonText.equals("Retour au menu principal")) {
|
||||
if (window.getContentPane().getComponent(0) instanceof PlayMenuView) {
|
||||
Window.removeAllComponents(window);
|
||||
|
@ -9,7 +9,7 @@ public class PlayMenuView extends JPanel {
|
||||
private final Color TITLE_TEXT_COLOR = Color.WHITE;
|
||||
private final Font TITLE_FONT = new Font("Copperplate", Font.BOLD, 40);
|
||||
private final Font BUTTON_FONT = new Font("Copperplate", Font.BOLD, 24);
|
||||
private final String[] BUTTON_TEXTS = {"Jouer sans grille", "Générer une grille", "Charger une grille"};
|
||||
private final String[] BUTTON_TEXTS = {"Jouer", "Générer une grille"};
|
||||
private Title titleLabel;
|
||||
private Button[] playModeButtons;
|
||||
private Button returnButton;
|
||||
|
Loading…
Reference in New Issue
Block a user