mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-16 20:24:31 +08:00
feat: 杂项工具全换成图标
This commit is contained in:
1 parent
361a6bafee
commit
f7c3f008d5
10 files changed
+245
-119
No files matched your search
@@ -400,15 +400,15 @@ Mota.require('var', 'hook').once('reset', () => {
|
||||
'fly',
|
||||
'save',
|
||||
'load',
|
||||
'undo',
|
||||
'redo',
|
||||
'danmaku',
|
||||
'minimap',
|
||||
'toolbox',
|
||||
'equipbox',
|
||||
'shop',
|
||||
'virtualKey',
|
||||
'setting'
|
||||
'setting',
|
||||
'undo',
|
||||
'redo',
|
||||
'danmaku',
|
||||
'minimap'
|
||||
]
|
||||
});
|
||||
// 计算位置
|
||||
|
||||
@@ -537,6 +537,7 @@ gameKey
|
||||
core.playSound('光标移动');
|
||||
if (flags.blade) flags.blade = false;
|
||||
else flags.blade = true;
|
||||
core.status.route.push('skill:1');
|
||||
core.updateStatusBar();
|
||||
})
|
||||
.realize('skill2', () => {
|
||||
@@ -546,6 +547,7 @@ gameKey
|
||||
flags.skill2
|
||||
) {
|
||||
Mota.Plugin.require('skill_g').jumpSkill();
|
||||
core.status.route.push('skill:2');
|
||||
} else {
|
||||
if (core.hasItem('pickaxe')) {
|
||||
core.useItem('pickaxe');
|
||||
@@ -561,6 +563,7 @@ gameKey
|
||||
core.playSound('光标移动');
|
||||
if (flags.shield) flags.shield = false;
|
||||
else flags.shield = true;
|
||||
core.status.route.push('skill:3');
|
||||
core.updateStatusBar();
|
||||
})
|
||||
.realize('debug', () => {
|
||||
|
||||
@@ -5,8 +5,7 @@ import { checkAssist, unwarpBinary } from '../custom/hotkey';
|
||||
import {
|
||||
flipBinary,
|
||||
getVitualKeyOnce,
|
||||
openDanmakuPoster,
|
||||
parseCss
|
||||
openDanmakuPoster
|
||||
} from '@/plugin/utils';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import {
|
||||
@@ -22,7 +21,15 @@ import { gameKey } from './hotkey';
|
||||
import { FunctionalComponent, StyleValue, h } from 'vue';
|
||||
import { mainUi } from './ui';
|
||||
import { isMobile } from '@/plugin/use';
|
||||
import { EllipsisOutlined } from '@ant-design/icons-vue';
|
||||
import {
|
||||
BackwardOutlined,
|
||||
EllipsisOutlined,
|
||||
FolderOpenOutlined,
|
||||
LayoutOutlined,
|
||||
MessageOutlined,
|
||||
SwapOutlined
|
||||
} from '@ant-design/icons-vue';
|
||||
import { generateKeyboardEvent } from '../custom/keyboard';
|
||||
|
||||
// todo: 新增更改设置的ToolItem
|
||||
|
||||
@@ -267,7 +274,7 @@ function MiscTool(props: CustomToolbarProps<'misc'>) {
|
||||
onClick={triggerFold}
|
||||
style={toolStyle}
|
||||
>
|
||||
折叠
|
||||
<FolderOpenOutlined></FolderOpenOutlined>
|
||||
</span>
|
||||
{item.items.map(v => {
|
||||
const info = CustomToolbar.misc.info[v];
|
||||
@@ -754,7 +761,7 @@ Mota.require('var', 'hook').once('reset', () => {
|
||||
'danmaku',
|
||||
'发弹幕',
|
||||
openDanmakuPoster,
|
||||
h('span', '发弹幕')
|
||||
h(MessageOutlined)
|
||||
);
|
||||
CustomToolbar.misc.register(
|
||||
'book',
|
||||
@@ -816,7 +823,14 @@ Mota.require('var', 'hook').once('reset', () => {
|
||||
'virtualKey',
|
||||
'虚拟键盘',
|
||||
() => {
|
||||
getVitualKeyOnce();
|
||||
getVitualKeyOnce().then(value => {
|
||||
gameKey.emitKey(
|
||||
value.key,
|
||||
value.assist,
|
||||
'up',
|
||||
generateKeyboardEvent(value.key, value.assist)
|
||||
);
|
||||
});
|
||||
},
|
||||
<img
|
||||
src={core.statusBar.icons.keyboard.src}
|
||||
@@ -874,7 +888,7 @@ Mota.require('var', 'hook').once('reset', () => {
|
||||
() => {
|
||||
core.doSL('autoSave', 'load');
|
||||
},
|
||||
h('span', '回退')
|
||||
h(BackwardOutlined)
|
||||
);
|
||||
CustomToolbar.misc.register(
|
||||
'redo',
|
||||
@@ -882,7 +896,7 @@ Mota.require('var', 'hook').once('reset', () => {
|
||||
() => {
|
||||
core.doSL('autoSave', 'reload');
|
||||
},
|
||||
h('span', '恢复')
|
||||
h(SwapOutlined)
|
||||
);
|
||||
CustomToolbar.misc.register(
|
||||
'setting',
|
||||
@@ -940,7 +954,7 @@ Mota.require('var', 'hook').once('reset', () => {
|
||||
}
|
||||
tool.refresh();
|
||||
},
|
||||
h('span', '小地图')
|
||||
h(LayoutOutlined)
|
||||
);
|
||||
// CustomToolbar.misc.register(
|
||||
// 'drag',
|
||||
|
||||
Reference in new issue
Block a user