diff --git a/src/initPlugin.ts b/src/initPlugin.ts index d9a8d0b..ea69e0f 100644 --- a/src/initPlugin.ts +++ b/src/initPlugin.ts @@ -8,6 +8,7 @@ import status from './plugin/ui/statusBar'; import mark from './plugin/mark'; import setting from './plugin/settings'; import chapter from './plugin/ui/chapter'; +import fly from './plugin/ui/fly'; function forward() { // 每个引入的插件都要在这里执行,否则不会被转发 @@ -20,7 +21,8 @@ function forward() { status(), mark(), setting(), - chapter() + chapter(), + fly() ]; // 初始化所有插件,并转发到core上 diff --git a/src/plugin/ui/toolbox.tsx b/src/plugin/ui/toolbox.tsx index 602fb98..d4df3d8 100644 --- a/src/plugin/ui/toolbox.tsx +++ b/src/plugin/ui/toolbox.tsx @@ -33,10 +33,13 @@ export function getItems(cls: 'all'): AllItem; export function getItems(cls: keyof ClsMap): [string, number][]; export function getItems(cls: keyof ClsMap | 'all') { const i = core.status.hero.items; + const ignore = ['book']; if (cls === 'all') { return { - tools: Object.entries(i.tools), - constants: Object.entries(i.constants) + tools: Object.entries(i.tools).filter(v => !ignore.includes(v[0])), + constants: Object.entries(i.constants).filter( + v => !ignore.includes(v[0]) + ) }; } const items = i[cls]; diff --git a/src/ui/markedEnemy.vue b/src/ui/markedEnemy.vue index 413eccd..0f47799 100644 --- a/src/ui/markedEnemy.vue +++ b/src/ui/markedEnemy.vue @@ -2,6 +2,7 @@