fix(client): 修复双实例镜像同步并调整底部工具布局
This commit is contained in:
36 files changed
+274
-88
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user