feat: full-screen StoryGallery with flow layout, startAtScene engine method, clickable flow nodes

This commit is contained in:
2026-06-12 11:37:14 +08:00
parent 6417a9de43
commit 0379548a29
5 changed files with 327 additions and 389 deletions

View File

@@ -43,7 +43,7 @@ const showTopBar = ref(true)
let hideTopBarTimer: ReturnType<typeof setTimeout> | null = null
const { loadGame, start, resumeAutoSave, makeChoice, clickHotspot, startChapter,
skipScene, setSpeed, getSpeed, isSceneWatched,
skipScene, setSpeed, getSpeed, isSceneWatched, startAtScene,
saveGame, loadGameFromSlot, refreshSaves, saveSystem, engine } =
useGameEngine(() => [videoElA.value, videoElB.value])
@@ -363,6 +363,7 @@ init()
:visited-ids="store.visitedSceneIds"
:unlocked-chapter-ids="store.unlockedChapterIds"
@start-chapter="(chId: string) => { showStoryGallery = false; onStartChapter(chId) }"
@start-at-scene="(chId: string, sceneId: string) => { showStoryGallery = false; started = true; startAtScene(chId, sceneId) }"
@close="showStoryGallery = false"
/>
<AchievementPanel