Commit 3f07a4e3 authored by YuFan Jia's avatar YuFan Jia 💤
Browse files

fix( ):

parent 3d425067
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -174,6 +174,5 @@ public class ChessBoardPanel extends JPanel {

    public void autoZoom(int width, int height) {// zoom
        this.setSize(chessBoard[0][0].getPreferredSize());
        System.out.println("board\t" + this.getWidth() + "\t" + this.getHeight());
    }
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ public class GameCore {
        } else {
            this.currentPlayer = ChessPiece.BLACK;
        }
        ChessGameUI.thisStatus.setCurrentPlayer(currentPlayer);
        // todo:complete status panel
        // statusPanel.setPlayerText(currentPlayer.name());
        // statusPanel.setScoreText(blackScore, whiteScore);
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ public class ChessGameUI extends JPanel {
	}

	private void menuBUttonActionPerformed() {
		JOptionPane.showConfirmDialog(null, "Are you sure to exit to menu?", "Waring", 2);
		BasicBackground.backFrame.remove(BasicBackground.thisChessGameUI);
		BasicBackground.changePanel(BasicBackground.thisStartMenuUI);
	}
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ public class StatusUI extends JPanel {

	public void setCurrentPlayer(ChessPiece currentPlayer) {
		this.currentPlayer = currentPlayer;
		refeshAll();
	}

	private void refeshAll() {