Skip to content

Commit f1f76ee

Browse files
committed
🚸 去除了”松开Tab键过快💨“的弹窗,改为文字浮现提示
1 parent e95b60a commit f1f76ee

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/src/core/service/controlService/keyboardOnlyEngine/keyboardOnlyEngine.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Dialog } from "../../../../components/dialog";
21
import { getEnterKey } from "../../../../utils/keyboardFunctions";
32
import { Vector } from "../../../dataStruct/Vector";
43
import { EdgeRenderer } from "../../../render/canvas2d/entityRenderer/edge/EdgeRenderer";
@@ -166,11 +165,7 @@ export namespace KeyboardOnlyEngine {
166165
export async function createFinished() {
167166
_isCreating = false;
168167
if (getPressTabTimeInterval() < 100) {
169-
Dialog.show({
170-
title: "松开Tab键过快💨",
171-
content: "按下Tab键的时间要在0.1秒以上,在松开Tab键之前,可以通过IKJL键移动虚拟目标位置。",
172-
type: "warning",
173-
});
168+
Stage.effectMachine.addEffect(TextRiseEffect.default("松开Tab键过快💨"));
174169
return;
175170
}
176171

0 commit comments

Comments
 (0)