Browse Source

added if statement to restart button functionality

master
Ozan-Can Ekinci 2 years ago
parent
commit
bcbb9c15d3
  1. 8
      src/main/java/Gui/ActionHandler.java

8
src/main/java/Gui/ActionHandler.java

@ -16,9 +16,11 @@ public class ActionHandler implements ActionListener {
System.exit(0);
}
GameGui.questionNr = 0;
GameGui.LosingPanel.setVisible(false);
restartGame.startGame();
if (e.getSource() == GameGui.RestartBtn) {
GameGui.questionNr = 0;
GameGui.LosingPanel.setVisible(false);
restartGame.startGame();
}
}

Loading…
Cancel
Save