Loading res/CBP 2.0.png 0 → 100644 +2.13 MiB Loading image diff... src/view/Frame/ChessGameFrame.java +4 −6 Changes for src/view/Frame/ChessGameFrame.java: 4 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -73,6 +73,7 @@ public class ChessGameFrame extends JFrame { addExitButton(); addLoadButton(); addBGMButton(); addBGPButton(); addWithdrawButton(); addSendButton(); Loading Loading @@ -162,7 +163,6 @@ public class ChessGameFrame extends JFrame { button.setLocation(550,200); button.setSize(40, 30); button.setFont(new Font("Rockwell", Font.BOLD, 10)); // button.setBackground(Color.green); button.setVisible(true); // whether visible add(button); Loading @@ -186,7 +186,7 @@ public class ChessGameFrame extends JFrame { button.setVisible(true); add(button); // TODO 宛城 // TODO 完成 button.addActionListener(e -> { }); Loading @@ -208,7 +208,6 @@ public class ChessGameFrame extends JFrame { }); } public void addSendButton() { JButton button = new JButton("Send"); button.setLocation(550,790); Loading Loading @@ -237,7 +236,6 @@ public class ChessGameFrame extends JFrame { score.setBackground(Color.black); score.setVisible(true); // todo instance is null int[] getScore = Game.instance.getScoreboard(); score.setText(String.valueOf(getScore[chessType])); add(score); Loading Loading @@ -288,7 +286,7 @@ public class ChessGameFrame extends JFrame { roomListArea.setFont(new Font("Rockwell",Font.BOLD,10)); roomListArea.setBackground(Color.WHITE); // todo 后端可 print 但 user 不能编辑 // playerListArea.setEnabled(false); playerListArea.setEditable(false); add(roomListArea); } Loading @@ -308,7 +306,7 @@ public class ChessGameFrame extends JFrame { messageArea.setBackground(Color.green); // jScrollPane.setLocation(445,718); // todo 后端可 print 但 user 不能编辑 // messageArea.setEnabled(false); messageArea.setEditable(false); messageArea.setLocation(445,625); // add(jScrollPane); add(messageArea); Loading src/view/Theme.java +1 −1 Changes for src/view/Theme.java: 1 added line, 1 removed line. Original line number Diff line number Diff line package view; public enum Theme { DEFAULT("img"), STYLE_2("img"), STYLE_3("img"); DEFAULT("res\\CBP 1.0.png"), STYLE_2("res\\CBP 2.0.png"), STYLE_3("img"); public final String imgDir; Theme(String imgDir) { Loading Loading
src/view/Frame/ChessGameFrame.java +4 −6 Changes for src/view/Frame/ChessGameFrame.java: 4 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -73,6 +73,7 @@ public class ChessGameFrame extends JFrame { addExitButton(); addLoadButton(); addBGMButton(); addBGPButton(); addWithdrawButton(); addSendButton(); Loading Loading @@ -162,7 +163,6 @@ public class ChessGameFrame extends JFrame { button.setLocation(550,200); button.setSize(40, 30); button.setFont(new Font("Rockwell", Font.BOLD, 10)); // button.setBackground(Color.green); button.setVisible(true); // whether visible add(button); Loading @@ -186,7 +186,7 @@ public class ChessGameFrame extends JFrame { button.setVisible(true); add(button); // TODO 宛城 // TODO 完成 button.addActionListener(e -> { }); Loading @@ -208,7 +208,6 @@ public class ChessGameFrame extends JFrame { }); } public void addSendButton() { JButton button = new JButton("Send"); button.setLocation(550,790); Loading Loading @@ -237,7 +236,6 @@ public class ChessGameFrame extends JFrame { score.setBackground(Color.black); score.setVisible(true); // todo instance is null int[] getScore = Game.instance.getScoreboard(); score.setText(String.valueOf(getScore[chessType])); add(score); Loading Loading @@ -288,7 +286,7 @@ public class ChessGameFrame extends JFrame { roomListArea.setFont(new Font("Rockwell",Font.BOLD,10)); roomListArea.setBackground(Color.WHITE); // todo 后端可 print 但 user 不能编辑 // playerListArea.setEnabled(false); playerListArea.setEditable(false); add(roomListArea); } Loading @@ -308,7 +306,7 @@ public class ChessGameFrame extends JFrame { messageArea.setBackground(Color.green); // jScrollPane.setLocation(445,718); // todo 后端可 print 但 user 不能编辑 // messageArea.setEnabled(false); messageArea.setEditable(false); messageArea.setLocation(445,625); // add(jScrollPane); add(messageArea); Loading
src/view/Theme.java +1 −1 Changes for src/view/Theme.java: 1 added line, 1 removed line. Original line number Diff line number Diff line package view; public enum Theme { DEFAULT("img"), STYLE_2("img"), STYLE_3("img"); DEFAULT("res\\CBP 1.0.png"), STYLE_2("res\\CBP 2.0.png"), STYLE_3("img"); public final String imgDir; Theme(String imgDir) { Loading