package nl.joshuaslik.tudelft.SEM.control.viewController;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import nl.joshuaslik.tudelft.SEM.Launcher;
import nl.joshuaslik.tudelft.SEM.utility.GameLog;

public class OptionsController implements IviewController {

    @FXML
    private Button playButton, chooseLevelButton, optionsButton, quitButton;

    /**
     * Handles clicking of the start button
     *
     * @param event the click of the button
     */
    @FXML
    protected void handlePlayButton(ActionEvent event) {
        GameLog.addInfoLog("Play button pressed from option menu");
        System.out.println("Play button pressed!");
        GameController.loadView();
    }

    /**
     * Handles clicking of the choose level button
     *
     * @param event the click of the button
     */
    @FXML
    protected void handleChooseLevelButton(ActionEvent event) {
        GameLog.addInfoLog("Choose level button pressed from option menu");
        System.out.println("Choose Level button pressed!");
        //        ChooseLevelController.loadView();
    }

    /**
     * Handles clicking of the options button
     *
     * @param event the click of the button
     */
    @FXML
    protected void handleOptionsButton(ActionEvent event) {
        GameLog.addInfoLog("Options button pressed from option menu");
        System.out.println("Options button pressed!");
        OptionsController.loadView();
    }

    /**
     * Handles clicking of the quit button
     *
     * @param event the click of the button
     */
    @FXML
    protected void handleQuitButton(ActionEvent event) {
        GameLog.addInfoLog("Quit button pressed from option menu");
        System.out.println("Quit button pressed!");
        System.exit(0);
    }

    /**
     * Load this view.
     */
    private static void loadView() {
        Launcher.loadView(Class.class.getResource("/data/gui/pages/Options.fxml"));
    }

    /**
     * Initialize.
     *
     * @param scene the scene of this view.
     */
    @Override
    public void start(Scene scene) {

    }

    /**
     * Disable the buttons of this view.
     *
     * @param disabled if the buttons should be disabled.
     */
    @Override
    public void setButtonsDisabled(boolean disabled) {
        // not currently needed
    }
}

@@ -569,24 +569,30 @@
 ePlayButton(
+final 
 ActionEvent 
@@ -592,32 +592,32 @@
 nEvent event) %7B%0A
-
         GameLog.
@@ -929,24 +929,30 @@
 LevelButton(
+final 
 ActionEvent 
@@ -1313,24 +1313,30 @@
 tionsButton(
+final 
 ActionEvent 
@@ -1671,16 +1671,22 @@
 tButton(
+final 
 ActionEv
@@ -2138,16 +2138,22 @@
 d start(
+final 
 Scene sc
@@ -2295,32 +2295,32 @@
 /%0A    @Override%0A
-
     public void 
@@ -2338,16 +2338,22 @@
 isabled(
+final 
 boolean 

Fix Checkstyle errors in OptionsController