mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-09-06 16:31:46 +08:00
fix: 图标显示错误 & 工具栏浏览地图按钮
This commit is contained in:
parent
7c5cd12d0e
commit
f5fa802d7a
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user