From 71a45510044e1e838589673066fc77b908a78364 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 1 Jan 2023 11:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/initPlugin.ts | 4 +++- src/plugin/ui/toolbox.tsx | 7 +++++-- src/ui/markedEnemy.vue | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) 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 @@