From cfcde0b0240e4a989ed83f1367d4808c92b11296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A6=E5=90=9B?= <73606411+setube@users.noreply.github.com> Date: Wed, 17 Dec 2025 21:06:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=98=9F=E5=88=97?= =?UTF-8?q?=E4=B8=8E=E5=A4=96=E4=BA=A4=E9=80=9A=E7=9F=A5=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8F=8A=E6=96=B0=E6=89=8B=E5=BC=95=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 引入队列通知(QueueNotifications)和外交通知(DiplomaticNotifications)组件,优化主界面队列与外交报告展示,支持一键查看与跳转。重构App.vue,移除原有队列展示,改为弹出式通知,支持功能解锁提示与新手引导(TutorialOverlay)。完善NPC外交事件处理,导弹攻击等行为影响好感度并生成报告。优化部分UI细节与多语言文本,提升交互体验。 --- package.json | 4 +- src/App.vue | 351 ++++++++----- src/components/DiplomaticNotifications.vue | 300 +++++++++++ src/components/ItemDetailView.vue | 149 ++++-- src/components/NpcRelationCard.vue | 22 +- src/components/QueueNotifications.vue | 166 ++++++ src/components/TutorialOverlay.vue | 438 ++++++++++++++++ src/components/UpdateDialog.vue | 2 +- src/components/ui/sidebar/Sidebar.vue | 51 +- src/components/ui/sonner/Sonner.vue | 6 + src/composables/useGameConfig.ts | 1 + src/composables/useTutorial.ts | 562 +++++++++++++++++++++ src/config/gameConfig.ts | 31 +- src/locales/de.ts | 105 +++- src/locales/en.ts | 236 ++++++++- src/locales/ja.ts | 102 +++- src/locales/ko.ts | 102 +++- src/locales/ru.ts | 105 +++- src/locales/zh-CN.ts | 206 +++++++- src/locales/zh-TW.ts | 99 +++- src/logic/battleLogic.ts | 5 +- src/logic/diplomaticLogic.ts | 235 ++++++++- src/logic/fleetLogic.ts | 34 +- src/logic/fleetStorageLogic.ts | 11 +- src/logic/gameLogic.ts | 5 +- src/logic/missileLogic.ts | 17 +- src/logic/npcGrowthLogic.ts | 18 +- src/logic/researchValidation.ts | 4 +- src/logic/resourceLogic.ts | 20 +- src/stores/gameStore.ts | 14 +- src/types/game.ts | 40 +- src/utils/format.ts | 25 +- src/views/BuildingsView.vue | 16 +- src/views/DefenseView.vue | 14 +- src/views/DiplomacyView.vue | 186 +++---- src/views/MessagesView.vue | 317 +++++++++++- src/views/ResearchView.vue | 5 +- src/views/ShipyardView.vue | 21 +- 38 files changed, 3605 insertions(+), 420 deletions(-) create mode 100644 src/components/DiplomaticNotifications.vue create mode 100644 src/components/QueueNotifications.vue create mode 100644 src/components/TutorialOverlay.vue create mode 100644 src/composables/useTutorial.ts diff --git a/package.json b/package.json index e28483d..b927d7d 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "email": "1962257451@qq.com" }, "private": true, - "version": "1.2.5", - "buildDate": "2025/12/15 21:21:23", + "version": "1.3.0", + "buildDate": "2025/12/17 21:05:49", "main": "dist-electron/main.js", "type": "module", "scripts": { diff --git a/src/App.vue b/src/App.vue index 065f9a0..d801e99 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@