Skip to content

Commit

Permalink
Merge pull request #99 from wkurvers/master
Browse files Browse the repository at this point in the history
gameview update
  • Loading branch information
TheElmo authored Apr 13, 2018
2 parents 94ee199 + 3a97556 commit 3d2c34f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/CSS/gameboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@

#rightPane{

-fx-background-color: linear-gradient(to top, #932d27, #f7483d);
-fx-background-color: linear-gradient(to top, #7f2b26, #f7483d);
}

#centerPane{
-fx-background-color: linear-gradient(to top, #efefef, #FAFAFA);
}

#bottomPane{
-fx-background-color: #E8E8E8;
}
Binary file added src/Images/closeRed2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions src/Views/GameBoardView.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import javafx.scene.control.Separator;
import javafx.scene.effect.DropShadow;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.scene.paint.ImagePattern;
Expand Down Expand Up @@ -63,11 +64,15 @@ public BottomPane() {
setAlignment(Pos.CENTER);
setForfeit();
setLayout();
setId("bottomPane");
}

private void setForfeit() {
Button forfeit = new Button("Give up");
forfeit.setEffect(new DropShadow());
Button forfeit = new Button();
Image loginPic = new Image("/Images/closeRed2.png");
forfeit.setGraphic(new ImageView(loginPic));
forfeit.setStyle("-fx-background-color: transparent;");
forfeit.setPadding(new Insets(0, 0, 10, 0));
forfeit.setOnAction((ActionEvent e) -> {
TCPConnection connection = TCPConnection.getInstance();
connection.sentCommand("forfeit");
Expand Down

0 comments on commit 3d2c34f

Please sign in to comment.