hanze/game-client

src/main/java/nl/isygameclient/controllers/games/tictactoe/TicTacToeMainMenuController.java in main
Repositories | Summary | Log | Files

TicTacToeMainMenuController.java (893B) download


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