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