View/ScoresView.java
public void createScoreOptionButtonActions(){
        playerAIScoresB.setOnAction(event -> {
            scene = new Scene(pane2,600,320);
            scene.getStylesheets().addAll("/View/stylesheet.css");
            stage.setScene(scene);
            createLabels1();
            createBackButton2();
            createBackButton2Action();

        });
        playerPlayerScoresB.setOnAction(event -> {
            scene = new Scene(pane3,600,470);
            scene.getStylesheets().addAll("/View/stylesheet.css");
            stage.setScene(scene);
            createLabels2();
            createBackButton3();
            createBackButton3Action();


        });
        highestScoreB.setOnAction(event -> {
            scene = new Scene(pane4,600,360);
            scene.getStylesheets().addAll("/View/stylesheet.css");
            stage.setScene(scene);
            createLabels3();
            createBackButton4();
            createBackButton4Action();

        });
    }
/*Sets the actions for three buttons previously created
     *so that the scores are shown when they are clicked
     */
Sets the actions for three buttons previously created
so that the scores are shown when they are clicked
Sets the actions for three buttons previously created so that the scores are shown when they are clicked
public void createScoreOptionButtonActions(){
        playerAIScoresB.setOnAction(event -> {
            scene = new Scene(pane2,600,320);
            scene.getStylesheets().addAll("/View/stylesheet.css");
            stage.setScene(scene);
            createLabels1();
            createBackButton2();
            createBackButton2Action();
        });
        playerPlayerScoresB.setOnAction(event -> {
            scene = new Scene(pane3,600,470);
            scene.getStylesheets().addAll("/View/stylesheet.css");
            stage.setScene(scene);
            createLabels2();
            createBackButton3();
            createBackButton3Action();
        });
        highestScoreB.setOnAction(event -> {
            scene = new Scene(pane4,600,360);
            scene.getStylesheets().addAll("/View/stylesheet.css");
            stage.setScene(scene);
            createLabels3();
            createBackButton4();
            createBackButton4Action();
        });
    }
public void createScoreOptionButtonActions ( ) { playerAIScoresB . setOnAction ( event -> { scene = new Scene ( pane2 , 600 , 320 ) ; scene . getStylesheets ( ) . addAll ( "/View/stylesheet.css" ) ; stage . setScene ( scene ) ; createLabels1 ( ) ; createBackButton2 ( ) ; createBackButton2Action ( ) ; } ) ; playerPlayerScoresB . setOnAction ( event -> { scene = new Scene ( pane3 , 600 , 470 ) ; scene . getStylesheets ( ) . addAll ( "/View/stylesheet.css" ) ; stage . setScene ( scene ) ; createLabels2 ( ) ; createBackButton3 ( ) ; createBackButton3Action ( ) ; } ) ; highestScoreB . setOnAction ( event -> { scene = new Scene ( pane4 , 600 , 360 ) ; scene . getStylesheets ( ) . addAll ( "/View/stylesheet.css" ) ; stage . setScene ( scene ) ; createLabels3 ( ) ; createBackButton4 ( ) ; createBackButton4Action ( ) ; } ) ; }
Sets the actions for three buttons previously created
so that the scores are shown when they are clicked
Sets the actions for three buttons previously created so that the scores are shown when they are clicked