From b61d08a0caa7b08e60ff63d865c5b2f7bcecb302 Mon Sep 17 00:00:00 2001 From: cocos02 Date: Sun, 14 Jun 2026 16:19:31 +0800 Subject: [PATCH] chore: battle result UI, demo locales, and scene updates --- public/demo/locales/en.json | 2 +- public/demo/locales/zh.json | 2 +- public/scenes/demo.json | 5 ++++- src/App.vue | 19 +++++++++++++----- src/components/BattleResult.vue | 34 ++++++++++++++++++++++++++++++--- 5 files changed, 51 insertions(+), 11 deletions(-) diff --git a/public/demo/locales/en.json b/public/demo/locales/en.json index d432642..6e0af20 100644 --- a/public/demo/locales/en.json +++ b/public/demo/locales/en.json @@ -95,5 +95,5 @@ "hud": { "player": "You" }, "result": { "victory": "Victory!" } }, - "stat": { "courage": "Courage" } + "stat": { "courage": "Courage", "qte_succeeded": "QTE Wins", "trust": "Trust", "investigation": "Investigation" } } \ No newline at end of file diff --git a/public/demo/locales/zh.json b/public/demo/locales/zh.json index 9a1a65f..8476f97 100644 --- a/public/demo/locales/zh.json +++ b/public/demo/locales/zh.json @@ -95,5 +95,5 @@ "hud": { "player": "你" }, "result": { "victory": "击退成功!" } }, - "stat": { "courage": "勇气" } + "stat": { "courage": "勇气", "qte_succeeded": "QTE 成功", "trust": "信任值", "investigation": "调查进度" } } \ No newline at end of file diff --git a/public/scenes/demo.json b/public/scenes/demo.json index 1f20118..017de39 100644 --- a/public/scenes/demo.json +++ b/public/scenes/demo.json @@ -417,7 +417,10 @@ "title": "击退成功!", "titleKey": "battle.result.victory", "stats": [ - { "label": "勇气", "labelKey": "stat.courage", "variable": "courage", "max": 100 } + { "label": "勇气", "labelKey": "stat.courage", "variable": "courage", "max": 100 }, + { "label": "QTE 成功", "labelKey": "stat.qte_succeeded", "variable": "qte_succeeded" }, + { "label": "信任值", "labelKey": "stat.trust", "variable": "trust" }, + { "label": "调查进度", "labelKey": "stat.investigation", "variable": "investigation", "max": 3 } ] }, "choices": [ diff --git a/src/App.vue b/src/App.vue index ae43038..2d0e1db 100644 --- a/src/App.vue +++ b/src/App.vue @@ -393,11 +393,13 @@ init() @skip="handleSkip" @speed-change="handleSpeedChange" /> - + + + + + diff --git a/src/components/BattleResult.vue b/src/components/BattleResult.vue index 51bbe23..812d4a7 100644 --- a/src/components/BattleResult.vue +++ b/src/components/BattleResult.vue @@ -1,10 +1,9 @@