diff --git a/engine/types.ts b/engine/types.ts index 407a685..25b5ad7 100644 --- a/engine/types.ts +++ b/engine/types.ts @@ -77,6 +77,7 @@ export interface QTEDefinition { export interface ChapterInfo { id: string label: string + labelKey?: string startScene: string thumbnail?: string defaultVariables?: Record @@ -94,6 +95,7 @@ export interface AchievementDef { export interface EndingDef { id: string label: string + labelKey?: string sceneId: string chapterId?: string thumbnail?: string diff --git a/public/demo/locales/en.json b/public/demo/locales/en.json index 1a1e3e7..d5d4d60 100644 --- a/public/demo/locales/en.json +++ b/public/demo/locales/en.json @@ -60,5 +60,15 @@ "continue": "Keep moving forward", "back": "Turn back" } + }, + "chapter": { + "ch1": "Chapter 1: Awakening", + "ch2": "Chapter 2: Investigation", + "ch3": "Chapter 3: Finale" + }, + "ending": { + "trust_end": "Trusted Ally", + "alone_end": "Lone Path", + "continue_end": "Keep Moving Forward" } } \ No newline at end of file diff --git a/public/demo/locales/ja.json b/public/demo/locales/ja.json index 0f32236..b595004 100644 --- a/public/demo/locales/ja.json +++ b/public/demo/locales/ja.json @@ -55,5 +55,15 @@ "continue": "先へ進む", "back": "引き返す" } + }, + "chapter": { + "ch1": "第一章:目覚め", + "ch2": "第二章:捜査", + "ch3": "第三章:終局" + }, + "ending": { + "trust_end": "信頼の仲間", + "alone_end": "孤独の道", + "continue_end": "前進を続ける" } } \ No newline at end of file diff --git a/public/demo/locales/zh.json b/public/demo/locales/zh.json index 3943510..fa21524 100644 --- a/public/demo/locales/zh.json +++ b/public/demo/locales/zh.json @@ -60,5 +60,15 @@ "continue": "继续前进", "back": "回头" } + }, + "chapter": { + "ch1": "第一章:醒来", + "ch2": "第二章:调查", + "ch3": "第三章:终局" + }, + "ending": { + "trust_end": "信任的伙伴", + "alone_end": "独行之路", + "continue_end": "继续前行" } } \ No newline at end of file diff --git a/public/scenes/demo.json b/public/scenes/demo.json index 0fdf14e..b72e9cb 100644 --- a/public/scenes/demo.json +++ b/public/scenes/demo.json @@ -39,14 +39,15 @@ } ], "endings": [ - { "id": "trust_end", "label": "信任的伙伴", "sceneId": "trust_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_trust.jpg" }, - { "id": "alone_end", "label": "独行之路", "sceneId": "alone_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_alone.jpg" }, - { "id": "continue_end", "label": "继续前行", "sceneId": "continue_ending", "chapterId": "ch3", "thumbnail": "ui/images/end_continue.jpg" } + { "id": "trust_end", "label": "信任的伙伴", "labelKey": "ending.trust_end", "sceneId": "trust_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_trust.jpg" }, + { "id": "alone_end", "label": "独行之路", "labelKey": "ending.alone_end", "sceneId": "alone_ending", "chapterId": "ch1", "thumbnail": "ui/images/end_alone.jpg" }, + { "id": "continue_end", "label": "继续前行", "labelKey": "ending.continue_end", "sceneId": "continue_ending", "chapterId": "ch3", "thumbnail": "ui/images/end_continue.jpg" } ], "chapters": [ { "id": "ch1", "label": "第一章:醒来", + "labelKey": "chapter.ch1", "startScene": "intro", "thumbnail": "ui/images/ch1.jpg", "defaultVariables": { "trust": 50, "courage": 0, "investigation": 0 } @@ -54,6 +55,7 @@ { "id": "ch2", "label": "第二章:调查", + "labelKey": "chapter.ch2", "startScene": "desk_detail", "thumbnail": "ui/images/ch2.jpg", "defaultVariables": { "trust": 60, "courage": 10, "investigation": 1 } @@ -61,6 +63,7 @@ { "id": "ch3", "label": "第三章:终局", + "labelKey": "chapter.ch3", "startScene": "qte_success", "thumbnail": "ui/images/ch3.jpg", "defaultVariables": { "trust": 70, "courage": 20, "investigation": 2 } diff --git a/public/scenes/main.json b/public/scenes/your_story.json similarity index 100% rename from public/scenes/main.json rename to public/scenes/your_story.json diff --git a/src/components/StoryGallery.vue b/src/components/StoryGallery.vue index fa4f8a6..52d6a0a 100644 --- a/src/components/StoryGallery.vue +++ b/src/components/StoryGallery.vue @@ -1,6 +1,9 @@