From f5fa802d7a97459d00c370c254ee4f38b4b4bfd3 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 4 Sep 2025 13:21:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20&=20=E5=B7=A5=E5=85=B7=E6=A0=8F=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=9C=B0=E5=9B=BE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages-user/client-modules/src/render/components/icons.tsx | 4 ++-- packages-user/client-modules/src/render/ui/toolbar.tsx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages-user/client-modules/src/render/components/icons.tsx b/packages-user/client-modules/src/render/components/icons.tsx index 62152a1..dc5a251 100644 --- a/packages-user/client-modules/src/render/components/icons.tsx +++ b/packages-user/client-modules/src/render/components/icons.tsx @@ -277,10 +277,10 @@ export const PauseIcon = defineIcon(1, (loc, pad) => { export const DoubleArrow = defineIcon(1, (loc, pad) => { const path = new Path2D(); const path2 = new Path2D(); - const [, , width, height, cx, cy] = loc; + const [, , , height, cx, cy] = loc; const [left, right, top, bottom] = pad(5); path.moveTo(left, top + height / 12); - path.lineTo(cx + width / 8, cy); + path.lineTo(cx, cy); path.lineTo(left, bottom - height / 12); path.closePath(); path2.moveTo(cx, top + height / 12); diff --git a/packages-user/client-modules/src/render/ui/toolbar.tsx b/packages-user/client-modules/src/render/ui/toolbar.tsx index db19245..31d3847 100644 --- a/packages-user/client-modules/src/render/ui/toolbar.tsx +++ b/packages-user/client-modules/src/render/ui/toolbar.tsx @@ -25,6 +25,7 @@ import { saveSave, saveLoad } from './save'; import { mainUIController } from './controller'; import { MAIN_WIDTH, MAIN_HEIGHT } from '../shared'; import { openSettings } from './settings'; +import { openViewMap } from './viewmap'; interface ToolbarProps extends DefaultProps { loc?: ElementLocator; @@ -110,9 +111,7 @@ export const PlayingToolbar = defineComponent< const redo = () => core.doSL('autoSave', 'reload'); const numpad = () => emit('numpad'); const view = () => { - if (core.isPlaying() && !core.isMoving() && !core.status.lockControl) { - core.ui._drawViewMaps(); - } + openViewMap(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]); }; const danmaku = () => requestAnimationFrame(openDanmakuPoster); const replay = () => core.ui._drawReplay();