feat: add dev diary and ending thumbnails, update chapter endings display

This commit is contained in:
2026-06-14 11:51:32 +08:00
parent d373cb8fc0
commit 92966331d3
3 changed files with 76 additions and 14 deletions

View File

@@ -123,6 +123,27 @@ QTE 成功 → effects: enemy_hp -= 25
- [x] `public/scenes/demo.json` — 新增 `combat_router` 条件路由示例
- [x] 验证TypeScript + Vite build 通过
### P26 关键节点过滤 — StoryGallery 只展示剧情分叉点 ✅ 已完成 2026-06-12
目标StoryGallery 不再展示所有场景,只展示剧情关键节点(章节起始、选择分支点、结局点)。
QTE 场景和过渡/路由场景被过滤,子节点上浮一级。
**三层判断:**
| 优先级 | 来源 | 说明 |
|:--:|------|------|
| 1 | `SceneNode.keyMoment` | 手动覆盖。`true`=强制展示,`false`=强制隐藏 |
| 2 | `endings[].sceneId` | 结局节点 |
| 3 | 自动判断 | 章节起点 / 有 `choices`(分支点)→ 关键节点。QTE 不算 |
**扁平化:** 非关键节点不渲染,子节点上浮到父节点层级,路径语义不变。
**实现清单:**
- [x] `engine/types.ts``SceneNode.keyMoment?: boolean`
- [x] `src/components/StoryGallery.vue``isKeyMoment()` 三层逻辑 + `collectKeyTargets()` 扁平化非关键节点
- [x] 验证TypeScript + Vite build 通过
## 已完成
P0~P23 全部实现(除 P18。详见 [CHANGELOG.md](CHANGELOG.md)。