package model.vooga;

import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ComboBox;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;

public class SplashScreen {

	private Stage myStage;
	private String myLanguage = "English";
	private ComboBox<String> myLanguageChooser;
	private VBox myVBox;
	/**
	 * Constructor that takes in a stage to display the graphics.
	 * @param stage
	 */
	
	public SplashScreen(Stage stage) {
		myStage = stage;
	}

	/**
	 * Initializes the scene which is displayed in the window.
	 * @return the splash screen scene
	 */
	
	public Scene init(){
		BorderPane display = createDisplay();
		Scene myScene = new Scene(display, 500, 500);
		return myScene;
	}
	
	/**
	 * Creates the splash screen display independently of initializing the scene.
	 * @return BorderPane in which the contents are the splash screen
	 */
	private BorderPane createDisplay() {
		Group root = new Group();
		Button createGame = Utilities.makeButton("Create Game", e -> myStage.setScene(Authoring.init()));

		myVBox = new VBox(30);
		myVBox.setAlignment(Pos.CENTER);
		myVBox.getChildren().add(createGame);
		root.getChildren().add(myVBox);

		BorderPane splash = new BorderPane();
		splash.setCenter(root);
		return splash;
	}

}

@@ -19,50 +19,8 @@
 a;%0A%0A
-import javafx.collections.ObservableList;%0A
 impo
@@ -137,46 +137,8 @@
 on;%0A
-import javafx.scene.control.ComboBox;%0A
 impo
@@ -203,277 +203,93 @@
 out.
-GridPane;%0Aimport javafx.scene.layout.VBox;%0Aimport javafx.scene.text.Font;%0Aimport javafx.scene.text.Text;%0Aimport javafx.stage.Stage;%0A%0Apublic class SplashScreen %7B%0A%0A%09private Stage myStage;%0A%09private String myLanguage = %22English%22;%0A%09private ComboBox%3CString%3E myLanguageChooser
+VBox;%0Aimport javafx.stage.Stage;%0A%0Apublic class SplashScreen %7B%0A%0A%09private Stage myStage
 ;%0A%09p

delete some shit