View/GamePVAIView.java
public void displayCurScoresGraphic(String s){
        changeScoreLabels();
        Alert alert = new Alert(Alert.AlertType.NONE, s);
        alert.getDialogPane().getStylesheets().add("/View/stylesheet.css");
        alert.setGraphic(new ImageView(new Image(getClass().getResourceAsStream("/View/Assets/CoinGif.gif"))));

        ButtonType alertButton1 = new ButtonType("Ok");
        alert.getButtonTypes().setAll(alertButton1);
        alert.showAndWait();
    }
/*Changes the scores labels and creates an alert with the winner and the image of a coin*/
Changes the scores labels and creates an alert with the winner and the image of a coin
Changes the scores labels and creates an alert with the winner and the image of a coin
public void displayCurScoresGraphic(String s){
        changeScoreLabels();
        Alert alert = new Alert(Alert.AlertType.NONE, s);
        alert.getDialogPane().getStylesheets().add("/View/stylesheet.css");
        alert.setGraphic(new ImageView(new Image(getClass().getResourceAsStream("/View/Assets/CoinGif.gif"))));
        ButtonType alertButton1 = new ButtonType("Ok");
        alert.getButtonTypes().setAll(alertButton1);
        alert.showAndWait();
    }
public void displayCurScoresGraphic ( String s ) { changeScoreLabels ( ) ; Alert alert = new Alert ( Alert . AlertType . NONE , s ) ; alert . getDialogPane ( ) . getStylesheets ( ) . add ( "/View/stylesheet.css" ) ; alert . setGraphic ( new ImageView ( new Image ( getClass ( ) . getResourceAsStream ( "/View/Assets/CoinGif.gif" ) ) ) ) ; ButtonType alertButton1 = new ButtonType ( "Ok" ) ; alert . getButtonTypes ( ) . setAll ( alertButton1 ) ; alert . showAndWait ( ) ; }
Changes the scores labels and creates an alert with the winner and the image of a coin
Changes the scores labels and creates an alert with the winner and the image of a coin