New buttons to resign and draw in GameGui
parent
24374030be
commit
66a8c1a51d
|
@ -32,10 +32,13 @@ public class GameGui {
|
||||||
private JLabel whiteTimerLabel;
|
private JLabel whiteTimerLabel;
|
||||||
private JLabel blackTimerLabel;
|
private JLabel blackTimerLabel;
|
||||||
|
|
||||||
JButton btnFirst = new JButton("|<");
|
private JButton btnFirst = new JButton("|<");
|
||||||
JButton btnPrev = new JButton("<");
|
private JButton btnPrev = new JButton("<");
|
||||||
JButton btnNext = new JButton(">");
|
private JButton btnNext = new JButton(">");
|
||||||
JButton btnLast = new JButton(">|");
|
private JButton btnLast = new JButton(">|");
|
||||||
|
|
||||||
|
private JButton resignButton;
|
||||||
|
private JButton drawButton;
|
||||||
|
|
||||||
Color LIGHT = new Color(0xe0e1dd);
|
Color LIGHT = new Color(0xe0e1dd);
|
||||||
Color DARK = new Color(0x778da9);
|
Color DARK = new Color(0x778da9);
|
||||||
|
@ -270,6 +273,8 @@ public class GameGui {
|
||||||
public JButton getBtnNext() { return btnNext; }
|
public JButton getBtnNext() { return btnNext; }
|
||||||
public JButton getBtnLast() { return btnLast; }
|
public JButton getBtnLast() { return btnLast; }
|
||||||
public JButton getBtnSave() { return btnSave; }
|
public JButton getBtnSave() { return btnSave; }
|
||||||
|
public JButton getResignButton() { return resignButton; }
|
||||||
|
public JButton getDrawButton() { return drawButton; }
|
||||||
|
|
||||||
public void updateBoard(BoardDTO boardDTO) {
|
public void updateBoard(BoardDTO boardDTO) {
|
||||||
PieceDTO[][] board = boardDTO.getBoard();
|
PieceDTO[][] board = boardDTO.getBoard();
|
||||||
|
|
Loading…
Reference in New Issue