Modification des noms (Mode en Série)

This commit is contained in:
2024-12-03 10:24:44 +01:00
parent f2822db056
commit a36cb04d5d
2 changed files with 12 additions and 12 deletions

View File

@@ -46,17 +46,17 @@ public class GameModeController implements ActionListener {
String command = e.getActionCommand(); String command = e.getActionCommand();
switch (command) { switch (command) {
case "Mode 1": case "Série 1":
startGame("Mode 1", getSeedFromDatabaseByName("Mode 1")); startGame("Série 1", getSeedFromDatabaseByName("Série 1"));
break; break;
case "Mode 2": case "Série 2":
startGame("Mode 2", getSeedFromDatabaseByName("Mode 2")); startGame("Série 2", getSeedFromDatabaseByName("Série 2"));
break; break;
case "Mode 3": case "Série 3":
startGame("Mode 3", getSeedFromDatabaseByName("Mode 3")); startGame("Série 3", getSeedFromDatabaseByName("Série 3"));
break; break;
case "Mode 4": case "Série 4":
startGame("Mode 4", getSeedFromDatabaseByName("Mode 4")); startGame("Série 4", getSeedFromDatabaseByName("Série 4"));
break; break;
case "Démarrer": case "Démarrer":
long seed = gameModeSelectionPanel.getLongSeed(); long seed = gameModeSelectionPanel.getLongSeed();

View File

@@ -43,10 +43,10 @@ public class GameModeSelectionPanel extends JPanel {
JPanel modePanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 20, 10)); // Centered with horizontal spacing JPanel modePanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 20, 10)); // Centered with horizontal spacing
modePanel.setOpaque(false); modePanel.setOpaque(false);
mode1Button = createGameModeButton("Mode 1", buttonListener); mode1Button = createGameModeButton("Série 1", buttonListener);
mode2Button = createGameModeButton("Mode 2", buttonListener); mode2Button = createGameModeButton("Série 2", buttonListener);
mode3Button = createGameModeButton("Mode 3", buttonListener); mode3Button = createGameModeButton("Série 3", buttonListener);
mode4Button = createGameModeButton("Mode 4", buttonListener); mode4Button = createGameModeButton("Série 4", buttonListener);
modePanel.add(mode1Button); modePanel.add(mode1Button);
modePanel.add(mode2Button); modePanel.add(mode2Button);