OthelloMainMenuController.java (950B)
1 package nl.isygameclient.controllers.games.othello; 2 3 import javafx.event.ActionEvent; 4 import javafx.fxml.FXML; 5 import nl.isygameclient.Window; 6 import nl.isygameclient.controllers.games.GameController; 7 import nl.isygameclient.controllers.games.GameMenuController; 8 import nl.isygameclient.util.StageHandler; 9 10 public class OthelloMainMenuController implements GameMenuController { 11 @Override 12 public void onSinglePlayerButtonClick(ActionEvent e) { 13 StageHandler.get().changeSceneOfStage(Window.GAME, "/nl/isygameclient/views/games/othello/OthelloSinglePlayer.fxml"); 14 } 15 16 @Override 17 public void onMultiPlayerButtonClick(ActionEvent e) { 18 StageHandler.get().changeSceneOfStage(Window.GAME,"/nl/isygameclient/views/games/othello/OthelloMultiPlayer.fxml"); 19 } 20 21 @Override 22 public void onExitGameButtonClick(ActionEvent e) { 23 var stageHandler = StageHandler.get(); 24 stageHandler.getStage(Window.GAME).hide(); 25 stageHandler.focusStage(Window.APP); 26 } 27 }