Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

Commit 4851b8a

Browse files
committed
更新README
1 parent 324a545 commit 4851b8a

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,29 @@
22
### 说明
33
一个跟打器,现在是刚刚可用的状态。名字也还没取。。
44

5-
演示:
6-
![跟打演示](跟打演示.gif)
5+
### TODO list
6+
#### 属性
7+
[x] 速度/击键/码长
8+
[x] 用时/字数/键数
9+
[x] 回车/退格
10+
[] 错字
11+
[] 打词
12+
[] 键准
13+
[] 重打
14+
15+
#### 功能
16+
[x] 剪切版载文
17+
[x] 离开窗口时,暂停记录
18+
[] 跟打窗口实时显示跟打状态
19+
[] 打开载文面板
20+
[] 模式切换
21+
[] 帮助
22+
[] 跟打框实时显示跟打状况
723

24+
#### 已知 Bug
25+
[] 嵌入模式下, 跟打状态更新异常
26+
[] 只有从跟打框的尾部输入时, 跟打状态才能正常更新.
827

9-
### 项目结构
10-
不知道怎么描述,反正想到啥就说啥了。
28+
演示:
29+
![跟打演示](跟打演示.gif)
1130

src/main/java/me/ryan/controller/RootController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public RootController(TextController textController, ScoresController scoresCont
3434
*
3535
* @param actionEvent xx
3636
*/
37-
public void setQQTextFromCupboard(ActionEvent actionEvent) {
37+
public void setTextFromCupboard(ActionEvent actionEvent) {
3838
// 1. 保存上一次的成绩,并初始化成绩
3939
scoresController.updateScores();
4040
scoreUpdater.reInit();

src/main/java/me/ryan/controller/TextController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private void updateText() {
127127
int inputLengthNow = inputText.length;
128128

129129

130-
logger.info("inputLengthLast:{}, inputLengthNow:{}", inputLengthLast, inputLengthNow);
130+
logger.debug("inputLengthLast:{}, inputLengthNow:{}", inputLengthLast, inputLengthNow);
131131

132132
if (inputLengthLast < inputLengthNow) {
133133
// 1. 更新字符数
@@ -138,6 +138,8 @@ private void updateText() {
138138
var inputChar = inputText[i];
139139
var textShouldBe = (Text) textList.get(i);
140140

141+
logger.info("inputText_{}: {}, textShouldBe: {}", i, inputChar, textShouldBe.getText());
142+
141143
if (textShouldBe.getText().equals(inputChar)) {
142144
textShouldBe.setOpacity(0.5); // 敲对了
143145
textShouldBe.setFill(Paint.valueOf("Orange"));
@@ -191,7 +193,6 @@ private void updateKeys(KeyEvent keyEvent) {
191193
scoreUpdater.incKeyEnterCount();
192194
break;
193195
}
194-
195196
}
196197

197198
/**

src/main/resources/view/RootView.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<items>
1717
<MenuItem mnemonicParsing="false" text="打开载文面板"/>
1818
<MenuItem mnemonicParsing="false" text="QQ剪切版载文"
19-
onAction="#setQQTextFromCupboard"/>
19+
onAction="#setTextFromCupboard"/>
2020
</items>
2121
</Menu>
2222
<Menu mnemonicParsing="false" text="模式">

0 commit comments

Comments
 (0)