Add not yet implemented messages
This commit is contained in:
		@@ -4,9 +4,11 @@ import java.net.URL;
 | 
				
			|||||||
import java.util.Timer;
 | 
					import java.util.Timer;
 | 
				
			||||||
import java.util.TimerTask;
 | 
					import java.util.TimerTask;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javafx.event.ActionEvent;
 | 
				
			||||||
import javafx.fxml.FXML;
 | 
					import javafx.fxml.FXML;
 | 
				
			||||||
import javafx.scene.Node;
 | 
					import javafx.scene.Node;
 | 
				
			||||||
import javafx.scene.control.Button;
 | 
					import javafx.scene.control.Button;
 | 
				
			||||||
 | 
					import javafx.scene.control.RadioMenuItem;
 | 
				
			||||||
import javafx.scene.image.Image;
 | 
					import javafx.scene.image.Image;
 | 
				
			||||||
import javafx.scene.image.ImageView;
 | 
					import javafx.scene.image.ImageView;
 | 
				
			||||||
import javafx.scene.input.MouseButton;
 | 
					import javafx.scene.input.MouseButton;
 | 
				
			||||||
@@ -20,6 +22,9 @@ public class Controller {
 | 
				
			|||||||
    @FXML
 | 
					    @FXML
 | 
				
			||||||
    private ImageView smiley, time_1, time_2, time_3, bomb_2, bomb_3;
 | 
					    private ImageView smiley, time_1, time_2, time_3, bomb_2, bomb_3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @FXML
 | 
				
			||||||
 | 
					    private RadioMenuItem color, marks;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private Grid gridHandler;
 | 
					    private Grid gridHandler;
 | 
				
			||||||
    private GridWrapper wrapper;
 | 
					    private GridWrapper wrapper;
 | 
				
			||||||
    private boolean gameOver = false;
 | 
					    private boolean gameOver = false;
 | 
				
			||||||
@@ -33,12 +38,18 @@ public class Controller {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @FXML
 | 
					    @FXML
 | 
				
			||||||
    private void initialize() {
 | 
					    private void initialize() {
 | 
				
			||||||
 | 
					        setNotYetImplemented(color);
 | 
				
			||||||
 | 
					        setNotYetImplemented(marks);
 | 
				
			||||||
        setupGrid();
 | 
					        setupGrid();
 | 
				
			||||||
        gridHandler = new Grid();
 | 
					        gridHandler = new Grid();
 | 
				
			||||||
        wrapper = gridHandler.grid;
 | 
					        wrapper = gridHandler.grid;
 | 
				
			||||||
        expandedTiles = new boolean[30][16];
 | 
					        expandedTiles = new boolean[30][16];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void setNotYetImplemented(RadioMenuItem node) {
 | 
				
			||||||
 | 
					        node.setOnAction((ActionEvent e) -> System.out.println("https://http.cat/images/501.jpg"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void setupGrid() {
 | 
					    private void setupGrid() {
 | 
				
			||||||
        for (int column = 0; column < 30; ++column) {
 | 
					        for (int column = 0; column < 30; ++column) {
 | 
				
			||||||
            for (int row = 0; row < 16; ++row) {
 | 
					            for (int row = 0; row < 16; ++row) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,8 +26,8 @@
 | 
				
			|||||||
                        <RadioMenuItem mnemonicParsing="false" text="Internmediate" toggleGroup="$difficulty" />
 | 
					                        <RadioMenuItem mnemonicParsing="false" text="Internmediate" toggleGroup="$difficulty" />
 | 
				
			||||||
                        <RadioMenuItem mnemonicParsing="false" selected="true" text="Expert" toggleGroup="$difficulty" />
 | 
					                        <RadioMenuItem mnemonicParsing="false" selected="true" text="Expert" toggleGroup="$difficulty" />
 | 
				
			||||||
                        <SeparatorMenuItem mnemonicParsing="false" />
 | 
					                        <SeparatorMenuItem mnemonicParsing="false" />
 | 
				
			||||||
                        <RadioMenuItem mnemonicParsing="false" selected="true" text="Marks (?)" />
 | 
					                        <RadioMenuItem fx:id="marks" mnemonicParsing="false" selected="true" text="Marks (?)" />
 | 
				
			||||||
                        <RadioMenuItem mnemonicParsing="false" selected="true" text="Color" />
 | 
					                        <RadioMenuItem fx:id="color" mnemonicParsing="false" selected="true" text="Color" />
 | 
				
			||||||
                        <SeparatorMenuItem mnemonicParsing="false" />
 | 
					                        <SeparatorMenuItem mnemonicParsing="false" />
 | 
				
			||||||
                        <MenuItem mnemonicParsing="false" style="-fx-padding-right: 15; -fx-border-insets: 10px; -fx-background-insets: 10px;" text="Best Times..." />
 | 
					                        <MenuItem mnemonicParsing="false" style="-fx-padding-right: 15; -fx-border-insets: 10px; -fx-background-insets: 10px;" text="Best Times..." />
 | 
				
			||||||
                        <SeparatorMenuItem mnemonicParsing="false" />
 | 
					                        <SeparatorMenuItem mnemonicParsing="false" />
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user