Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
texturing button not clickable yet
Browse files Browse the repository at this point in the history
  • Loading branch information
MENZI-MCHUNU committed Oct 5, 2017
1 parent 294a2da commit 6ff4d9a
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 100 deletions.
58 changes: 0 additions & 58 deletions .idea/codeStyleSettings.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/libraries/gradle_wrapper.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules/Suji.iml

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/java/logic/gamehandler/GameHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public interface GameHandler extends BoardProvider, EventPublisher, GameTreeProv

void undo();

void texture();

StoneColour getTurnPlayer();

void setKomi(double komi);
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/logic/gamehandler/LocalGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public void setKomi(double komi) {
this.komi = komi;
}

@Override
public void texture(){}

private void fireGameEvent(EventType<? extends GameEvent> type) {
GameEvent event = new GameEvent(this, this, type);
fireEvent(event);
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/ogs/SpectatorGameHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ public void pass() {

}

@Override
public void texture(){}

@Override
public void undo() {

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/ui/controller/sidebar/GameMenuController.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public class GameMenuController extends SelfBuildingController implements Initia
private Button undoButton;
@FXML
private Button passButton;
@FXML
private Button textureButton;


private GameHandler game;

Expand Down Expand Up @@ -66,6 +69,7 @@ private void setupButtons() {
undoButton.setOnAction(this::undo);
saveButton.setOnAction(this::save);
reviewButton.setOnAction(this::startReview);
textureButton.setOnAction(this::texture);
saveButton.setVisible(false);
reviewButton.setVisible(false);
}
Expand Down Expand Up @@ -111,4 +115,6 @@ private void save(ActionEvent event) {
private void undo(ActionEvent event) {
game.undo();
}

private void texture(ActionEvent event) { game.texture();}
}
5 changes: 5 additions & 0 deletions src/main/resources/fxml/gameMenu.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@
<Button fx:id="reviewButton" mnemonicParsing="false" text="Review" AnchorPane.leftAnchor="0"
AnchorPane.rightAnchor="0"/>
</AnchorPane>
<AnchorPane>
<Button fx:id="textureButton" mnemonicParsing="false" text="Texture" AnchorPane.leftAnchor="0"
AnchorPane.rightAnchor="0"/>
</AnchorPane>

</VBox>
24 changes: 0 additions & 24 deletions src/test/test.iml

This file was deleted.

0 comments on commit 6ff4d9a

Please sign in to comment.