Commit 28dd9154 authored by lynn's avatar lynn
Browse files

更新

parent 6beefa17
Loading
Loading
Loading
Loading

res/CBP 2.0.png

0 → 100644
+2.13 MiB
Loading image diff...
+4 −6
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ public class ChessGameFrame extends JFrame {
        addExitButton();
        addLoadButton();
        addBGMButton();
        addBGPButton();
        addWithdrawButton();
        addSendButton();

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

@@ -186,7 +186,7 @@ public class ChessGameFrame extends JFrame {
        button.setVisible(true);
        add(button);

        // TODO 宛城
        // TODO 完成
        button.addActionListener(e -> {

        });
@@ -208,7 +208,6 @@ public class ChessGameFrame extends JFrame {

        });
    }

    public void addSendButton() {
        JButton button = new JButton("Send");
        button.setLocation(550,790);
@@ -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);
@@ -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);
    }

@@ -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);
+1 −1
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) {