Skip to content
Snippets Groups Projects
Commit ed032efd authored by Magnus Eik's avatar Magnus Eik
Browse files

Reformat initializeColorButtonHandler based on MVC.

parent c2248e16
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,12 @@ public class GuiButtonController {
gui.getNewButton().setOnAction(event -> newGame());
gui.getClearButton().setOnAction(event -> clearImageView());
gui.getQuitButton().setOnAction(event -> quitGame());
gui.getColorCheckBox().setOnAction(event -> game.setUseColor(gui.getColorCheckBox().isSelected()));
}
/**
* Update the description of the chaos game.
* TODO: this method may need to be changed depending on how we implement the UI. Rename to update?
......
......@@ -332,7 +332,7 @@ public ChaosGameGui(Stage primaryStage) throws IOException {
improvedBarnsleyButton);
sideMenu.getChildren().addAll(separator1, colorBox, separator2);
this.initializeColorButtonHandler();
//this.initializeColorButtonHandler();
// Add parameter VBox
sideMenu.getChildren().add(parameterBox);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment