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();