fix(client): 修复双实例镜像同步并调整底部工具布局
构建客户端 / 检查(类型 + 单元测试) (push) Canceled after 0s
构建客户端 / Linux x64(deb + AppImage) (push) Canceled after 0s
构建客户端 / Windows x64(NSIS 安装包) (push) Canceled after 0s
构建客户端 / macOS 通用(.app + .dmg) (push) Canceled after 0s

This commit is contained in:
sloray committed 2026-11-01 23:58:27 +08:00
1 parent 1b1fa0f35b
commit 0a8f7bcf90
36 files changed
+274 -88

No files matched your search

+3 -3
View File
@@ -170,7 +170,7 @@ export async function previewInvoke<T>(command: string, args?: Record<string, un
let previewCapture = 0;
let previewCaptureAt = 0;
let previewInputSequence = 0;
let previewOperator: OperatorControlView = { active: false, captureId: null, mode: null, reason: "预览 · 未发送真实操作" };
let previewOperator: OperatorControlView = { active: false, captureId: null, mode: null, reason: "预览 / 未发送真实操作" };
function handle(command: string, args: Record<string, unknown>): unknown {
switch (command) {
@@ -179,7 +179,7 @@ function handle(command: string, args: Record<string, unknown>): unknown {
const mode = args.mode === "debug" ? "debug" : "match";
previewInputSequence = 0;
previewCaptureAt = performance.now();
previewOperator = { active: true, captureId: ++previewCapture, mode, reason: "预览 · 合成输入,不发送到装甲板" };
previewOperator = { active: true, captureId: ++previewCapture, mode, reason: "预览 / 合成输入,不发送到装甲板" };
return previewCapture;
}
case "operator_input": {
@@ -634,7 +634,7 @@ function draw(canvas: HTMLCanvasElement, team: number, frameId: number) {
ctx.font = "600 20px ui-monospace, monospace";
ctx.fillStyle = "#e8e8ec";
ctx.fillText(team === 0 ? "PREVIEW · TEAM 1" : "PREVIEW · TEAM 2", 14, height - 40);
ctx.fillText(team === 0 ? "PREVIEW / TEAM 1" : "PREVIEW / TEAM 2", 14, height - 40);
ctx.font = "500 16px ui-monospace, monospace";
ctx.fillStyle = "#8a8a95";
ctx.fillText(`frame ${frameId}`, 14, height - 16);