New buttons to resign and draw in GameGui

GitBranch^2
Justin 2025-06-23 22:46:15 +02:00
parent 24374030be
commit 66a8c1a51d
1 changed files with 9 additions and 4 deletions

View File

@ -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();