mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-29 05:24:30 +08:00
feat & fix: 小地图显示剩余怪物 & id优化
This commit is contained in:
1 parent
020551bd90
commit
59c3b46cfc
15 files changed
+93
-13
No files matched your search
@@ -46,10 +46,19 @@ interface AssistKeyToolbarItem extends ToolbarItemBase<'assistKey'> {
|
||||
assist: KeyCode.Ctrl | KeyCode.Shift | KeyCode.Alt;
|
||||
}
|
||||
|
||||
interface MinimatToolbar extends ToolbarItemBase<'minimap'> {
|
||||
action: boolean;
|
||||
scale: number;
|
||||
noBorder: boolean;
|
||||
showInfo: boolean;
|
||||
autoLocate: boolean;
|
||||
}
|
||||
|
||||
interface ToolbarItemMap {
|
||||
hotkey: HotkeyToolbarItem;
|
||||
item: ItemToolbarItem;
|
||||
assistKey: AssistKeyToolbarItem;
|
||||
minimap: MinimatToolbar;
|
||||
}
|
||||
|
||||
interface ToolbarSaveData {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { getVitualKeyOnce } from '@/plugin/utils';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { Select, SelectOption } from 'ant-design-vue';
|
||||
import { mainSetting } from '../setting';
|
||||
import Minimap from '@/components/minimap.vue';
|
||||
|
||||
// todo: 新增更改设置的ToolItem
|
||||
|
||||
@@ -88,6 +89,16 @@ function AssistKeyTool(props: CustomToolbarProps<'assistKey'>) {
|
||||
);
|
||||
}
|
||||
|
||||
function MinimapToolbar(props: CustomToolbarProps<'minimap'>) {
|
||||
const { item, toolbar } = props;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Minimap></Minimap>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function DefaultToolEditor(props: CustomToolbarProps) {
|
||||
return <span></span>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user