From 3d548f3746cf0a8aa7778100d921117b4194ff30 Mon Sep 17 00:00:00 2001 From: Luciano Hanyon Wu Date: Sun, 15 Mar 2026 17:12:34 +0800 Subject: [PATCH 1/4] chore: bump version to v0.2.1 --- docs/vt-guidelines.md | 4 ++-- package.json | 4 ++-- scripts/sync-vt-route-graphics.js | 4 ++-- vt/static/main.js | 9 ++++++--- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/vt-guidelines.md b/docs/vt-guidelines.md index 0973623..ede1d9d 100644 --- a/docs/vt-guidelines.md +++ b/docs/vt-guidelines.md @@ -1,6 +1,6 @@ # VT Guidelines -Last updated: 2026-03-09 +Last updated: 2026-03-15 ## Purpose @@ -14,7 +14,7 @@ Define one stable standard for VT authoring in this repo: - The VT Docker flow runs Chromium in a software WebGL fallback path on this repo's current container/runtime setup. - Full-size `1920x1080` Pixi capture on that path is expensive, so VT syncs a local ignored `vt/static/RouteGraphics.js` bundle before VT runs. -- The sync script downloads `route-graphics@0.1.0/dist/RouteGraphics.js` from jsDelivr by default. +- The sync script downloads `route-graphics@0.1.2/dist/RouteGraphics.js` from jsDelivr by default. - Override the source with `VT_ROUTE_GRAPHICS_URL`, or just the package version with `VT_ROUTE_GRAPHICS_VERSION`. - That VT-only bundle is patched during sync to initialize Pixi with `resolution: 0.5` and `preserveDrawingBuffer: true`. - Full-frame VT references are exported from that native half-resolution render surface. diff --git a/package.json b/package.json index 9e8cca4..26f9bdf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "route-engine-js", - "version": "0.2.0", + "version": "0.2.1", "description": "A lightweight Visual Novel engine built in JavaScript for creating interactive narrative games with branching storylines", "repository": { "type": "git", @@ -41,7 +41,7 @@ "coverage": "bun run vitest run --coverage", "vt:sync-route-graphics": "bun scripts/sync-vt-route-graphics.js", "vt:generate": "bun scripts/sync-vt-route-graphics.js && bun run esbuild.js && rtgl vt generate", - "vt:docker": "bun scripts/sync-vt-route-graphics.js && bun run esbuild.js && docker run --rm ${VT_DOCKER_ARGS:-} --user $(id -u):$(id -g) -e RTGL_VT_DEBUG=true -v \"$PWD:/app\" -w /app han4wluc/rtgl:playwright-v1.57.0-rtgl-v1.0.0-rc12 rtgl vt screenshot --wait-event vt:ready --concurrency ${VT_DOCKER_CONCURRENCY:-2} --timeout ${VT_DOCKER_TIMEOUT:-60000}", + "vt:docker": "bun scripts/sync-vt-route-graphics.js && bun run esbuild.js && docker run --rm ${VT_DOCKER_ARGS:-} --user $(id -u):$(id -g) -e RTGL_VT_DEBUG=true -v \"$PWD:/app\" -w /app docker.io/han4wluc/rtgl:playwright-v1.57.0-rtgl-v1.0.10 rtgl vt screenshot --wait-event vt:ready --concurrency ${VT_DOCKER_CONCURRENCY:-2} --timeout ${VT_DOCKER_TIMEOUT:-60000}", "vt:report": "bun run vt:docker && rtgl vt report", "vt:accept": "rtgl vt accept", "serve": "bun run esbuild.js && bunx serve -p 3004 .rettangoli/vt/_site" diff --git a/scripts/sync-vt-route-graphics.js b/scripts/sync-vt-route-graphics.js index 7195442..da21298 100644 --- a/scripts/sync-vt-route-graphics.js +++ b/scripts/sync-vt-route-graphics.js @@ -6,7 +6,7 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const repoRoot = path.resolve(__dirname, ".."); const targetPath = path.resolve(repoRoot, "vt/static/RouteGraphics.js"); -const defaultVersion = process.env.VT_ROUTE_GRAPHICS_VERSION || "0.1.0"; +const defaultVersion = process.env.VT_ROUTE_GRAPHICS_VERSION || "0.1.2"; const sourceUrl = process.env.VT_ROUTE_GRAPHICS_URL || `https://cdn.jsdelivr.net/npm/route-graphics@${defaultVersion}/dist/RouteGraphics.js`; @@ -35,7 +35,7 @@ if (!initPattern.test(source)) { const patched = source.replace( initPattern, (_, initPrefix) => - `await r.init({${initPrefix}preference:"webgl",resolution:.5,preserveDrawingBuffer:!0})`, + `await r.init({${initPrefix}preference:"webgl",resolution:globalThis.RTGL_VT_DEBUG ? .5 : 1,preserveDrawingBuffer:!!globalThis.RTGL_VT_DEBUG,clearBeforeRender:!0})`, ); fs.mkdirSync(path.dirname(targetPath), { recursive: true }); diff --git a/vt/static/main.js b/vt/static/main.js index c617166..391e1d8 100644 --- a/vt/static/main.js +++ b/vt/static/main.js @@ -137,6 +137,7 @@ const init = async () => { const assetBufferMap = assetBufferManager.getBufferMap(); const routeGraphics = createRouteGraphics(); + const autoCompleteRenderedLines = !!window?.RTGL_VT_DEBUG; window.takeVtScreenshotBase64 = async (label) => { if (label) { @@ -243,9 +244,11 @@ const init = async () => { if (!shouldHandleRenderComplete(payload)) { return; } - engine.handleActions({ - markLineCompleted: {} - }); + if (autoCompleteRenderedLines) { + engine.handleActions({ + markLineCompleted: {} + }); + } return; } if (payload.actions) { From 6e3635abfdd357af87a01065774d7302ccbbc71d Mon Sep 17 00:00:00 2001 From: Luciano Hanyon Wu Date: Sun, 15 Mar 2026 23:07:56 +0800 Subject: [PATCH 2/4] Align route-engine with route-graphics 1.0 --- docs/RouteEngine.md | 2 +- docs/vt-guidelines.md | 2 +- scripts/sync-vt-route-graphics.js | 4 +-- .../renderState/addCharacters.spec.yaml | 8 ++--- spec/system/renderState/addChoices.spec.yaml | 16 ++++----- .../renderState/addLayeredViews.spec.yaml | 22 ++++++------ spec/system/renderState/addLayout.spec.yaml | 4 +-- .../renderState/resolveColorIds.spec.yaml | 4 +-- .../renderState/resolveImageIds.spec.yaml | 8 ++--- .../projectData/animationResource.yaml | 5 +-- src/schemas/projectData/resources.yaml | 4 +-- src/stores/constructRenderState.js | 4 +-- vt/specs/background/animation-1.yaml | 2 +- vt/specs/background/animation-2.yaml | 2 +- .../background/animation-once-per-line.yaml | 2 +- vt/specs/background/backgroundId.yaml | 2 +- vt/specs/background/layout.yaml | 2 +- vt/specs/bgm/basic.yaml | 2 +- vt/specs/character/animation-1.yaml | 2 +- vt/specs/character/animation-2.yaml | 10 +++--- vt/specs/character/basic.yaml | 2 +- vt/specs/character/custom-position.yaml | 2 +- vt/specs/character/duplicate-character.yaml | 2 +- vt/specs/choice/animation.yaml | 12 +++---- vt/specs/choice/basic.yaml | 4 +-- vt/specs/complete/one.yaml | 12 +++---- vt/specs/dialogue/animation.yaml | 8 ++--- vt/specs/dialogue/autoplay.yaml | 10 +++--- vt/specs/dialogue/basic.yaml | 2 +- vt/specs/dialogue/history.yaml | 10 +++--- vt/specs/dialogue/nvl-mode.yaml | 2 +- vt/specs/dialogue/sceneMode.yaml | 8 ++--- vt/specs/dialogue/skip.yaml | 8 ++--- vt/specs/dialogue/with-background.yaml | 2 +- vt/specs/keyboard/basic.yaml | 4 +-- vt/specs/layout/animation.yaml | 12 +++---- vt/specs/layout/basic.yaml | 2 +- vt/specs/layout/layeredViews.yaml | 10 +++--- .../nextLineConfig/applyMode-persistent.yaml | 2 +- .../nextLineConfig/applyMode-singleLine.yaml | 2 +- .../nextLineConfig/choice-stops-auto.yaml | 4 +-- .../completion-text-animation-choice.yaml | 4 +-- .../completion-video-animation.yaml | 2 +- vt/specs/save/basic.yaml | 22 ++++++------ vt/specs/save/dynamic-slot-selector-test.yaml | 8 ++--- vt/specs/save/multi-slot-test.yaml | 34 +++++++++---------- vt/specs/sectionTransition/basic.yaml | 2 +- vt/specs/sfx/basic.yaml | 2 +- vt/specs/slider/slider-variable-binding.yaml | 4 +-- vt/specs/variables/boolean-test.yaml | 12 +++---- vt/specs/variables/counter.yaml | 6 ++-- vt/specs/variables/object-test.yaml | 2 +- vt/specs/variables/rollback-offset-test.yaml | 10 +++--- vt/specs/variables/rollback-test.yaml | 6 ++-- vt/specs/variables/scope-comparison.yaml | 24 ++++++------- vt/specs/variables/string-test.yaml | 18 +++++----- vt/specs/video/background.yaml | 2 +- vt/specs/video/visual.yaml | 2 +- vt/specs/visual/animated.yaml | 2 +- vt/specs/visual/transform.yaml | 2 +- vt/specs/visual/visual-1.yaml | 2 +- vt/specs/visual/visual-animation-1.yaml | 2 +- vt/specs/visual/visual-animation-2.yaml | 2 +- vt/specs/visual/visual-layout.yaml | 2 +- vt/specs/visual/visual-multiple.yaml | 2 +- vt/specs/visual/visual-snow-effect.yaml | 2 +- vt/static/main.js | 4 ++- 67 files changed, 203 insertions(+), 204 deletions(-) diff --git a/docs/RouteEngine.md b/docs/RouteEngine.md index f2b156c..76af316 100644 --- a/docs/RouteEngine.md +++ b/docs/RouteEngine.md @@ -144,7 +144,7 @@ Invalid `_event.*` bindings fail fast with an explicit error. min: 0 max: 100 change: - actionPayload: + payload: actions: updateVariable: id: setVolume diff --git a/docs/vt-guidelines.md b/docs/vt-guidelines.md index ede1d9d..8d7d8ea 100644 --- a/docs/vt-guidelines.md +++ b/docs/vt-guidelines.md @@ -14,7 +14,7 @@ Define one stable standard for VT authoring in this repo: - The VT Docker flow runs Chromium in a software WebGL fallback path on this repo's current container/runtime setup. - Full-size `1920x1080` Pixi capture on that path is expensive, so VT syncs a local ignored `vt/static/RouteGraphics.js` bundle before VT runs. -- The sync script downloads `route-graphics@0.1.2/dist/RouteGraphics.js` from jsDelivr by default. +- The sync script downloads `route-graphics@1.0.0/dist/RouteGraphics.js` from jsDelivr by default. - Override the source with `VT_ROUTE_GRAPHICS_URL`, or just the package version with `VT_ROUTE_GRAPHICS_VERSION`. - That VT-only bundle is patched during sync to initialize Pixi with `resolution: 0.5` and `preserveDrawingBuffer: true`. - Full-frame VT references are exported from that native half-resolution render surface. diff --git a/scripts/sync-vt-route-graphics.js b/scripts/sync-vt-route-graphics.js index da21298..b651e2d 100644 --- a/scripts/sync-vt-route-graphics.js +++ b/scripts/sync-vt-route-graphics.js @@ -6,7 +6,7 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const repoRoot = path.resolve(__dirname, ".."); const targetPath = path.resolve(repoRoot, "vt/static/RouteGraphics.js"); -const defaultVersion = process.env.VT_ROUTE_GRAPHICS_VERSION || "0.1.2"; +const defaultVersion = process.env.VT_ROUTE_GRAPHICS_VERSION || "1.0.0"; const sourceUrl = process.env.VT_ROUTE_GRAPHICS_URL || `https://cdn.jsdelivr.net/npm/route-graphics@${defaultVersion}/dist/RouteGraphics.js`; @@ -35,7 +35,7 @@ if (!initPattern.test(source)) { const patched = source.replace( initPattern, (_, initPrefix) => - `await r.init({${initPrefix}preference:"webgl",resolution:globalThis.RTGL_VT_DEBUG ? .5 : 1,preserveDrawingBuffer:!!globalThis.RTGL_VT_DEBUG,clearBeforeRender:!0})`, + `await r.init({${initPrefix}preference:"webgl",resolution:.5,preserveDrawingBuffer:!0,clearBeforeRender:!0})`, ); fs.mkdirSync(path.dirname(targetPath), { recursive: true }); diff --git a/spec/system/renderState/addCharacters.spec.yaml b/spec/system/renderState/addCharacters.spec.yaml index 01a5690..c671876 100644 --- a/spec/system/renderState/addCharacters.spec.yaml +++ b/spec/system/renderState/addCharacters.spec.yaml @@ -335,12 +335,12 @@ in: keyframes: - duration: 2000 value: 2.2 - easing: easeOut + easing: easeOutQuad scaleY: keyframes: - duration: 2000 value: 2.2 - easing: easeOut + easing: easeOutQuad out: elements: - id: "story" @@ -374,12 +374,12 @@ out: keyframes: - duration: 2000 value: 2.2 - easing: easeOut + easing: easeOutQuad scaleY: keyframes: - duration: 2000 value: 2.2 - easing: easeOut + easing: easeOutQuad --- case: multiple characters with different sprites in: diff --git a/spec/system/renderState/addChoices.spec.yaml b/spec/system/renderState/addChoices.spec.yaml index e7764f0..b46d562 100644 --- a/spec/system/renderState/addChoices.spec.yaml +++ b/spec/system/renderState/addChoices.spec.yaml @@ -47,7 +47,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "button" id: "choice-button" @@ -102,7 +102,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "container" id: "choices" @@ -193,7 +193,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "choice-label" type: "text" @@ -250,7 +250,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "choice-panel" type: "rect" @@ -302,7 +302,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "choice-image" type: "sprite" @@ -376,7 +376,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} animations: [] --- @@ -417,7 +417,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} animations: [] --- @@ -458,7 +458,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "text" content: "No choices available" diff --git a/spec/system/renderState/addLayeredViews.spec.yaml b/spec/system/renderState/addLayeredViews.spec.yaml index 9b966fd..8ff49ff 100644 --- a/spec/system/renderState/addLayeredViews.spec.yaml +++ b/spec/system/renderState/addLayeredViews.spec.yaml @@ -94,7 +94,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "text" content: "LayeredView content" @@ -150,7 +150,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "text" content: "Menu" @@ -167,7 +167,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "image" src: "overlay.png" @@ -219,7 +219,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "text" content: "Exists" @@ -286,7 +286,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "text" content: "Animated" @@ -366,7 +366,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "credits-body" type: "container" @@ -433,7 +433,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - type: "container" x: 10 @@ -487,7 +487,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} animations: [] --- @@ -551,7 +551,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "layered-label" type: "text" @@ -615,7 +615,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "layered-panel" type: "rect" @@ -674,7 +674,7 @@ out: x: 0 y: 0 click: - actionPayload: + payload: actions: {} - id: "layered-image" type: "sprite" diff --git a/spec/system/renderState/addLayout.spec.yaml b/spec/system/renderState/addLayout.spec.yaml index 8a22946..bcf683f 100644 --- a/spec/system/renderState/addLayout.spec.yaml +++ b/spec/system/renderState/addLayout.spec.yaml @@ -250,7 +250,7 @@ in: colorId: "hoverColor" click: colorId: "clickColor" - actionPayload: + payload: actions: {} colors: idleColor: @@ -285,7 +285,7 @@ out: fill: "#303030" click: fill: "#404040" - actionPayload: + payload: actions: {} animations: [] --- diff --git a/spec/system/renderState/resolveColorIds.spec.yaml b/spec/system/renderState/resolveColorIds.spec.yaml index adaa296..1c6952b 100644 --- a/spec/system/renderState/resolveColorIds.spec.yaml +++ b/spec/system/renderState/resolveColorIds.spec.yaml @@ -32,7 +32,7 @@ in: cursor: "pointer" click: colorId: "active" - actionPayload: + payload: actions: {} rightClick: colorId: "muted" @@ -56,7 +56,7 @@ out: cursor: "pointer" click: fill: "#666666" - actionPayload: + payload: actions: {} rightClick: fill: "#000000" diff --git a/spec/system/renderState/resolveImageIds.spec.yaml b/spec/system/renderState/resolveImageIds.spec.yaml index f3669d4..30de424 100644 --- a/spec/system/renderState/resolveImageIds.spec.yaml +++ b/spec/system/renderState/resolveImageIds.spec.yaml @@ -14,10 +14,10 @@ in: clickImageId: "click" hover: cursor: "pointer" - actionPayload: + payload: action: "hovered" click: - actionPayload: + payload: action: "clicked" - images: idle: @@ -40,11 +40,11 @@ out: height: 180 hover: cursor: "pointer" - actionPayload: + payload: action: "hovered" src: "hover.png" click: - actionPayload: + payload: action: "clicked" src: "click.png" --- diff --git a/src/schemas/projectData/animationResource.yaml b/src/schemas/projectData/animationResource.yaml index ea60d26..5d5becd 100644 --- a/src/schemas/projectData/animationResource.yaml +++ b/src/schemas/projectData/animationResource.yaml @@ -22,9 +22,6 @@ $defs: description: Easing function to use. enum: - linear - - easeIn - - easeOut - - easeInOut - easeInQuad - easeOutQuad - easeInOutQuad @@ -199,7 +196,7 @@ properties: complete: type: object properties: - actionPayload: + payload: type: object additionalProperties: true tween: diff --git a/src/schemas/projectData/resources.yaml b/src/schemas/projectData/resources.yaml index 71017a0..3291249 100644 --- a/src/schemas/projectData/resources.yaml +++ b/src/schemas/projectData/resources.yaml @@ -264,9 +264,9 @@ properties: additionalProperties: type: object properties: - actionPayload: + payload: type: object - required: [actionPayload] + required: [payload] layouts: type: object description: Layout configurations authored with resource references that are resolved before rendering diff --git a/src/stores/constructRenderState.js b/src/stores/constructRenderState.js index 8d41d15..86052e6 100644 --- a/src/stores/constructRenderState.js +++ b/src/stores/constructRenderState.js @@ -1284,7 +1284,7 @@ export const addChoices = ( x: 0, y: 0, click: { - actionPayload: { + payload: { actions: {}, }, }, @@ -1562,7 +1562,7 @@ export const addLayeredViews = ( x: 0, y: 0, click: { - actionPayload: { + payload: { actions: {}, }, }, diff --git a/vt/specs/background/animation-1.yaml b/vt/specs/background/animation-1.yaml index 6d1a738..679912c 100644 --- a/vt/specs/background/animation-1.yaml +++ b/vt/specs/background/animation-1.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/background/animation-2.yaml b/vt/specs/background/animation-2.yaml index 92611fa..4571828 100644 --- a/vt/specs/background/animation-2.yaml +++ b/vt/specs/background/animation-2.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/background/animation-once-per-line.yaml b/vt/specs/background/animation-once-per-line.yaml index b9af74b..000a5ff 100644 --- a/vt/specs/background/animation-once-per-line.yaml +++ b/vt/specs/background/animation-once-per-line.yaml @@ -20,7 +20,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/background/backgroundId.yaml b/vt/specs/background/backgroundId.yaml index e9abf70..57aedf0 100644 --- a/vt/specs/background/backgroundId.yaml +++ b/vt/specs/background/backgroundId.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/background/layout.yaml b/vt/specs/background/layout.yaml index 341888e..4f619e5 100644 --- a/vt/specs/background/layout.yaml +++ b/vt/specs/background/layout.yaml @@ -28,7 +28,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/bgm/basic.yaml b/vt/specs/bgm/basic.yaml index 581e68b..1e738a0 100644 --- a/vt/specs/bgm/basic.yaml +++ b/vt/specs/bgm/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/character/animation-1.yaml b/vt/specs/character/animation-1.yaml index 0bef531..a20030c 100644 --- a/vt/specs/character/animation-1.yaml +++ b/vt/specs/character/animation-1.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/character/animation-2.yaml b/vt/specs/character/animation-2.yaml index 78c3ade..2174951 100644 --- a/vt/specs/character/animation-2.yaml +++ b/vt/specs/character/animation-2.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -87,7 +87,7 @@ resources: keyframes: - duration: 1500 value: 480 - easing: easeOut + easing: easeOutQuad alpha: initialValue: 0 keyframes: @@ -103,7 +103,7 @@ resources: keyframes: - duration: 1500 value: 1400 - easing: easeOut + easing: easeOutQuad alpha: initialValue: 0 keyframes: @@ -118,7 +118,7 @@ resources: keyframes: - duration: 1500 value: -300 - easing: easeIn + easing: easeInQuad alpha: keyframes: - duration: 1500 @@ -132,7 +132,7 @@ resources: keyframes: - duration: 1500 value: 2220 - easing: easeIn + easing: easeInQuad alpha: keyframes: - duration: 1500 diff --git a/vt/specs/character/basic.yaml b/vt/specs/character/basic.yaml index 7fe0d4c..93d0304 100644 --- a/vt/specs/character/basic.yaml +++ b/vt/specs/character/basic.yaml @@ -27,7 +27,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/character/custom-position.yaml b/vt/specs/character/custom-position.yaml index 3ac7571..ea9b83d 100644 --- a/vt/specs/character/custom-position.yaml +++ b/vt/specs/character/custom-position.yaml @@ -27,7 +27,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/character/duplicate-character.yaml b/vt/specs/character/duplicate-character.yaml index 4c6ede1..8608e3f 100644 --- a/vt/specs/character/duplicate-character.yaml +++ b/vt/specs/character/duplicate-character.yaml @@ -27,7 +27,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/choice/animation.yaml b/vt/specs/choice/animation.yaml index e755926..27729e9 100644 --- a/vt/specs/choice/animation.yaml +++ b/vt/specs/choice/animation.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -42,7 +42,7 @@ resources: height: 50 opacity: 0.9 click: - actionPayload: + payload: actions: sectionTransition: ${item.events.click.actions.sectionTransition} colorId: layoutColor2 @@ -82,7 +82,7 @@ resources: keyframes: - duration: 400 value: 1 - easing: easeOut + easing: easeOutQuad fadeOut: name: Fade Out type: live @@ -91,7 +91,7 @@ resources: keyframes: - duration: 400 value: 0 - easing: easeIn + easing: easeInQuad slideIn: name: Slide In type: live @@ -101,13 +101,13 @@ resources: keyframes: - duration: 300 value: 400 - easing: easeOut + easing: easeOutQuad alpha: initialValue: 0 keyframes: - duration: 300 value: 1 - easing: easeOut + easing: easeOutQuad fonts: fontDefault: fileId: Arial diff --git a/vt/specs/choice/basic.yaml b/vt/specs/choice/basic.yaml index 8afb65e..9f28f04 100644 --- a/vt/specs/choice/basic.yaml +++ b/vt/specs/choice/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -46,7 +46,7 @@ resources: width: 400 height: 60 click: - actionPayload: + payload: actions: sectionTransition: ${item.events.click.actions.sectionTransition} - id: 39dkk2 diff --git a/vt/specs/complete/one.yaml b/vt/specs/complete/one.yaml index d165f17..86564c7 100644 --- a/vt/specs/complete/one.yaml +++ b/vt/specs/complete/one.yaml @@ -66,7 +66,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -298,7 +298,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -1066,7 +1066,7 @@ resources: hover: textStyleId: textStyle9 click: - actionPayload: + payload: actions: toggleAutoMode: {} textStyleId: @@ -1082,7 +1082,7 @@ resources: hover: textStyleId: textStyle9 click: - actionPayload: + payload: actions: toggleSkipMode: {} textStyleId: @@ -1217,7 +1217,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: sectionTransition: sectionId: 3k3s9sd @@ -1226,7 +1226,7 @@ resources: type: text content: XLoad Load click: - actionPayload: + payload: addLayeredView: resourceId: dafkjkl3 updateVariable: diff --git a/vt/specs/dialogue/animation.yaml b/vt/specs/dialogue/animation.yaml index dd8000a..d38c0d6 100644 --- a/vt/specs/dialogue/animation.yaml +++ b/vt/specs/dialogue/animation.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -61,7 +61,7 @@ resources: keyframes: - duration: 500 value: 1 - easing: easeOut + easing: easeOutQuad fadeOut: name: Fade Out type: live @@ -70,7 +70,7 @@ resources: keyframes: - duration: 500 value: 0 - easing: easeIn + easing: easeInQuad slideUp: name: Slide Up type: live @@ -80,7 +80,7 @@ resources: keyframes: - duration: 400 value: 700 - easing: easeOut + easing: easeOutQuad fonts: fontDefault: fileId: Arial diff --git a/vt/specs/dialogue/autoplay.yaml b/vt/specs/dialogue/autoplay.yaml index 35101a5..b4261a4 100644 --- a/vt/specs/dialogue/autoplay.yaml +++ b/vt/specs/dialogue/autoplay.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -48,7 +48,7 @@ resources: hover: textStyleId: textStyle3 click: - actionPayload: + payload: actions: toggleAutoMode: {} textStyleId: @@ -62,7 +62,7 @@ resources: hover: textStyleId: textStyle3 click: - actionPayload: + payload: actions: toggleSkipMode: {} textStyleId: @@ -76,7 +76,7 @@ resources: hover: textStyleId: textStyle3 click: - actionPayload: + payload: actions: setAutoplayDelay: delay: 2000 @@ -89,7 +89,7 @@ resources: hover: textStyleId: textStyle3 click: - actionPayload: + payload: actions: setAutoplayDelay: delay: 250 diff --git a/vt/specs/dialogue/basic.yaml b/vt/specs/dialogue/basic.yaml index 8a7db59..7950e02 100644 --- a/vt/specs/dialogue/basic.yaml +++ b/vt/specs/dialogue/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/dialogue/history.yaml b/vt/specs/dialogue/history.yaml index 4ff7119..41cde22 100644 --- a/vt/specs/dialogue/history.yaml +++ b/vt/specs/dialogue/history.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -73,7 +73,7 @@ resources: hover: textStyleId: textStyle3 click: - actionPayload: + payload: actions: pushLayeredView: resourceId: historyLayout @@ -90,7 +90,7 @@ resources: y: 0 opacity: 0.8 click: - actionPayload: + payload: actions: popLayeredView: {} colorId: layoutColor2 @@ -101,7 +101,7 @@ resources: x: 460 y: 190 click: - actionPayload: + payload: actions: {} colorId: layoutColor1 - id: history-title @@ -142,7 +142,7 @@ resources: x: 900 y: 800 click: - actionPayload: + payload: actions: popLayeredView: {} colorId: layoutColor3 diff --git a/vt/specs/dialogue/nvl-mode.yaml b/vt/specs/dialogue/nvl-mode.yaml index 70fd800..f616a8e 100644 --- a/vt/specs/dialogue/nvl-mode.yaml +++ b/vt/specs/dialogue/nvl-mode.yaml @@ -14,7 +14,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/dialogue/sceneMode.yaml b/vt/specs/dialogue/sceneMode.yaml index 2d3fbfa..828c5c9 100644 --- a/vt/specs/dialogue/sceneMode.yaml +++ b/vt/specs/dialogue/sceneMode.yaml @@ -20,7 +20,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -49,7 +49,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: setNextLineConfig: manual: @@ -67,7 +67,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: setNextLineConfig: manual: @@ -83,7 +83,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: toggleSkipMode: {} textStyleId: diff --git a/vt/specs/dialogue/skip.yaml b/vt/specs/dialogue/skip.yaml index ec80813..74c0709 100644 --- a/vt/specs/dialogue/skip.yaml +++ b/vt/specs/dialogue/skip.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -48,7 +48,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: jumpToLine: lineId: line1 @@ -61,7 +61,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: toggleSkipMode: {} textStyleId: @@ -75,7 +75,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: toggleSkipOnlyViewedLines: {} textStyleId: diff --git a/vt/specs/dialogue/with-background.yaml b/vt/specs/dialogue/with-background.yaml index 9824726..b81b0f7 100644 --- a/vt/specs/dialogue/with-background.yaml +++ b/vt/specs/dialogue/with-background.yaml @@ -14,7 +14,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/keyboard/basic.yaml b/vt/specs/keyboard/basic.yaml index dd97dd4..f2e4267 100644 --- a/vt/specs/keyboard/basic.yaml +++ b/vt/specs/keyboard/basic.yaml @@ -10,11 +10,11 @@ resources: keyboards: gameplay: Enter: - actionPayload: + payload: actions: nextLine: {} space: - actionPayload: + payload: actions: toggleDialogueUI: {} layouts: diff --git a/vt/specs/layout/animation.yaml b/vt/specs/layout/animation.yaml index 85e57fa..61e2207 100644 --- a/vt/specs/layout/animation.yaml +++ b/vt/specs/layout/animation.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -61,7 +61,7 @@ resources: keyframes: - duration: 400 value: 1 - easing: easeOut + easing: easeOutQuad fadeOut: name: Fade Out type: live @@ -70,7 +70,7 @@ resources: keyframes: - duration: 400 value: 0 - easing: easeIn + easing: easeInQuad scaleIn: name: Scale In type: live @@ -80,19 +80,19 @@ resources: keyframes: - duration: 300 value: 1 - easing: easeOut + easing: easeOutQuad scaleY: initialValue: 0.8 keyframes: - duration: 300 value: 1 - easing: easeOut + easing: easeOutQuad alpha: initialValue: 0 keyframes: - duration: 300 value: 1 - easing: easeOut + easing: easeOutQuad fonts: fontDefault: fileId: Arial diff --git a/vt/specs/layout/basic.yaml b/vt/specs/layout/basic.yaml index f4ef408..7eddb67 100644 --- a/vt/specs/layout/basic.yaml +++ b/vt/specs/layout/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/layout/layeredViews.yaml b/vt/specs/layout/layeredViews.yaml index f96ae94..8781d84 100644 --- a/vt/specs/layout/layeredViews.yaml +++ b/vt/specs/layout/layeredViews.yaml @@ -27,7 +27,7 @@ resources: x: 100 y: 300 click: - actionPayload: + payload: actions: pushLayeredView: resourceId: menuLayout @@ -46,7 +46,7 @@ resources: x: 100 y: 400 click: - actionPayload: + payload: actions: pushLayeredView: resourceId: overlayLayout @@ -65,7 +65,7 @@ resources: x: 100 y: 500 click: - actionPayload: + payload: actions: popLayeredView: {} colorId: color2 @@ -82,7 +82,7 @@ resources: x: 100 y: 600 click: - actionPayload: + payload: actions: replaceLastLayeredView: resourceId: animatedLayout @@ -101,7 +101,7 @@ resources: x: 100 y: 700 click: - actionPayload: + payload: actions: clearLayeredViews: {} colorId: color2 diff --git a/vt/specs/nextLineConfig/applyMode-persistent.yaml b/vt/specs/nextLineConfig/applyMode-persistent.yaml index 8ee742e..7feabd6 100644 --- a/vt/specs/nextLineConfig/applyMode-persistent.yaml +++ b/vt/specs/nextLineConfig/applyMode-persistent.yaml @@ -20,7 +20,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/nextLineConfig/applyMode-singleLine.yaml b/vt/specs/nextLineConfig/applyMode-singleLine.yaml index d6e168e..3c8c371 100644 --- a/vt/specs/nextLineConfig/applyMode-singleLine.yaml +++ b/vt/specs/nextLineConfig/applyMode-singleLine.yaml @@ -20,7 +20,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/nextLineConfig/choice-stops-auto.yaml b/vt/specs/nextLineConfig/choice-stops-auto.yaml index f39fc9a..72a842c 100644 --- a/vt/specs/nextLineConfig/choice-stops-auto.yaml +++ b/vt/specs/nextLineConfig/choice-stops-auto.yaml @@ -20,7 +20,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -60,7 +60,7 @@ resources: width: 1400 height: 80 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor3 diff --git a/vt/specs/nextLineConfig/completion-text-animation-choice.yaml b/vt/specs/nextLineConfig/completion-text-animation-choice.yaml index d2464ab..5aa14e8 100644 --- a/vt/specs/nextLineConfig/completion-text-animation-choice.yaml +++ b/vt/specs/nextLineConfig/completion-text-animation-choice.yaml @@ -34,7 +34,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -74,7 +74,7 @@ resources: width: 1440 height: 76 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor2 diff --git a/vt/specs/nextLineConfig/completion-video-animation.yaml b/vt/specs/nextLineConfig/completion-video-animation.yaml index cb473d6..d327dba 100644 --- a/vt/specs/nextLineConfig/completion-video-animation.yaml +++ b/vt/specs/nextLineConfig/completion-video-animation.yaml @@ -41,7 +41,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/save/basic.yaml b/vt/specs/save/basic.yaml index 070863e..e1c5103 100644 --- a/vt/specs/save/basic.yaml +++ b/vt/specs/save/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -49,7 +49,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: pushLayeredView: resourceId: saveMenuLayout @@ -70,7 +70,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: pushLayeredView: resourceId: loadMenuLayout @@ -114,7 +114,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: clearLayeredViews: {} colorId: layoutColor3 @@ -133,7 +133,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 1 @@ -153,7 +153,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 2 @@ -173,7 +173,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 3 @@ -222,7 +222,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: clearLayeredViews: {} colorId: layoutColor3 @@ -241,7 +241,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 1 @@ -261,7 +261,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 2 @@ -281,7 +281,7 @@ resources: hover: colorId: color3 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 3 diff --git a/vt/specs/save/dynamic-slot-selector-test.yaml b/vt/specs/save/dynamic-slot-selector-test.yaml index f2de695..60876fc 100644 --- a/vt/specs/save/dynamic-slot-selector-test.yaml +++ b/vt/specs/save/dynamic-slot-selector-test.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: contextNextLine: {} colorId: layoutColor1 @@ -55,7 +55,7 @@ resources: hover: textStyleId: textStyle4 click: - actionPayload: + payload: actions: updateVariable: id: uv1 @@ -72,7 +72,7 @@ resources: hover: textStyleId: textStyle4 click: - actionPayload: + payload: actions: updateVariable: id: uv2 @@ -102,7 +102,7 @@ resources: hover: colorId: layoutColor2 click: - actionPayload: + payload: actions: saveSaveSlot: slot: ${slot.slotNumber} diff --git a/vt/specs/save/multi-slot-test.yaml b/vt/specs/save/multi-slot-test.yaml index b647bc2..9a62b6b 100644 --- a/vt/specs/save/multi-slot-test.yaml +++ b/vt/specs/save/multi-slot-test.yaml @@ -31,7 +31,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: contextNextLine: {} colorId: layoutColor1 @@ -109,7 +109,7 @@ resources: hover: textStyleId: textStyle7 click: - actionPayload: + payload: actions: updateVariable: id: uv1 @@ -126,7 +126,7 @@ resources: hover: textStyleId: textStyle7 click: - actionPayload: + payload: actions: updateVariable: id: uv2 @@ -143,7 +143,7 @@ resources: hover: textStyleId: textStyle7 click: - actionPayload: + payload: actions: updateVariable: id: uv3 @@ -171,7 +171,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv4 @@ -187,7 +187,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv5 @@ -214,7 +214,7 @@ resources: hover: textStyleId: textStyle9 click: - actionPayload: + payload: actions: updateVariable: id: uv6 @@ -231,7 +231,7 @@ resources: hover: textStyleId: textStyle9 click: - actionPayload: + payload: actions: updateVariable: id: uv7 @@ -259,7 +259,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv8 @@ -289,7 +289,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 1 @@ -303,7 +303,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 2 @@ -317,7 +317,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 3 @@ -331,7 +331,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: saveSaveSlot: slot: 4 @@ -358,7 +358,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 1 @@ -372,7 +372,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 2 @@ -386,7 +386,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 3 @@ -400,7 +400,7 @@ resources: hover: textStyleId: textStyle11 click: - actionPayload: + payload: actions: loadSaveSlot: slot: 4 diff --git a/vt/specs/sectionTransition/basic.yaml b/vt/specs/sectionTransition/basic.yaml index 9dfb893..2f5776e 100644 --- a/vt/specs/sectionTransition/basic.yaml +++ b/vt/specs/sectionTransition/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/sfx/basic.yaml b/vt/specs/sfx/basic.yaml index de62936..aad9046 100644 --- a/vt/specs/sfx/basic.yaml +++ b/vt/specs/sfx/basic.yaml @@ -19,7 +19,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/slider/slider-variable-binding.yaml b/vt/specs/slider/slider-variable-binding.yaml index 40b1dc5..4259a2d 100644 --- a/vt/specs/slider/slider-variable-binding.yaml +++ b/vt/specs/slider/slider-variable-binding.yaml @@ -36,7 +36,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -93,7 +93,7 @@ resources: thumbSrc: horizontal_hover_thumb barSrc: horizontal_hover_bar change: - actionPayload: + payload: actions: updateVariable: id: setSliderValue diff --git a/vt/specs/variables/boolean-test.yaml b/vt/specs/variables/boolean-test.yaml index e53febb..0cd4186 100644 --- a/vt/specs/variables/boolean-test.yaml +++ b/vt/specs/variables/boolean-test.yaml @@ -27,7 +27,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -62,7 +62,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv1 @@ -91,7 +91,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv2 @@ -120,7 +120,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv3 @@ -144,7 +144,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv4 @@ -162,7 +162,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv5 diff --git a/vt/specs/variables/counter.yaml b/vt/specs/variables/counter.yaml index f345149..56f5d22 100644 --- a/vt/specs/variables/counter.yaml +++ b/vt/specs/variables/counter.yaml @@ -24,7 +24,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -57,7 +57,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: updateVariable: id: uvIncrement @@ -73,7 +73,7 @@ resources: hover: textStyleId: textStyle2 click: - actionPayload: + payload: actions: updateVariable: id: uvDecrement diff --git a/vt/specs/variables/object-test.yaml b/vt/specs/variables/object-test.yaml index c84101a..e4c3d0c 100644 --- a/vt/specs/variables/object-test.yaml +++ b/vt/specs/variables/object-test.yaml @@ -31,7 +31,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/variables/rollback-offset-test.yaml b/vt/specs/variables/rollback-offset-test.yaml index 31f313c..f861c87 100644 --- a/vt/specs/variables/rollback-offset-test.yaml +++ b/vt/specs/variables/rollback-offset-test.yaml @@ -27,7 +27,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -43,7 +43,7 @@ resources: height: 280 opacity: 0.9 click: - actionPayload: + payload: actions: nextLine: {} colorId: color4 @@ -82,7 +82,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: rollbackByOffset: offset: -1 @@ -95,7 +95,7 @@ resources: hover: textStyleId: textStyle4 click: - actionPayload: + payload: actions: rollbackByOffset: offset: -2 @@ -108,7 +108,7 @@ resources: hover: textStyleId: textStyle4 click: - actionPayload: + payload: actions: rollbackByOffset: offset: -3 diff --git a/vt/specs/variables/rollback-test.yaml b/vt/specs/variables/rollback-test.yaml index 9fd67e5..6258843 100644 --- a/vt/specs/variables/rollback-test.yaml +++ b/vt/specs/variables/rollback-test.yaml @@ -23,7 +23,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -39,7 +39,7 @@ resources: height: 280 opacity: 0.9 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor2 @@ -71,7 +71,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: rollbackToLine: sectionId: story diff --git a/vt/specs/variables/scope-comparison.yaml b/vt/specs/variables/scope-comparison.yaml index 1131d92..0b7ce02 100644 --- a/vt/specs/variables/scope-comparison.yaml +++ b/vt/specs/variables/scope-comparison.yaml @@ -40,7 +40,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -103,7 +103,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv1 @@ -120,7 +120,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv2 @@ -149,7 +149,7 @@ resources: hover: textStyleId: textStyle10 click: - actionPayload: + payload: actions: updateVariable: id: uv3 @@ -166,7 +166,7 @@ resources: hover: textStyleId: textStyle10 click: - actionPayload: + payload: actions: updateVariable: id: uv4 @@ -224,7 +224,7 @@ resources: hover: textStyleId: textStyle10 click: - actionPayload: + payload: actions: updateVariable: id: uv5 @@ -241,7 +241,7 @@ resources: hover: textStyleId: textStyle10 click: - actionPayload: + payload: actions: updateVariable: id: uv6 @@ -258,7 +258,7 @@ resources: hover: textStyleId: textStyle10 click: - actionPayload: + payload: actions: updateVariable: id: uv7 @@ -287,7 +287,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv8 @@ -304,7 +304,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv9 @@ -362,7 +362,7 @@ resources: hover: textStyleId: textStyle8 click: - actionPayload: + payload: actions: updateVariable: id: uv10 @@ -390,7 +390,7 @@ resources: hover: textStyleId: textStyle10 click: - actionPayload: + payload: actions: updateVariable: id: uv11 diff --git a/vt/specs/variables/string-test.yaml b/vt/specs/variables/string-test.yaml index 5a18385..78cd0d1 100644 --- a/vt/specs/variables/string-test.yaml +++ b/vt/specs/variables/string-test.yaml @@ -23,7 +23,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 @@ -76,7 +76,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv1 @@ -94,7 +94,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv2 @@ -112,7 +112,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv3 @@ -130,7 +130,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv4 @@ -154,7 +154,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv5 @@ -172,7 +172,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv6 @@ -190,7 +190,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv7 @@ -208,7 +208,7 @@ resources: hover: textStyleId: textStyle5 click: - actionPayload: + payload: actions: updateVariable: id: uv8 diff --git a/vt/specs/video/background.yaml b/vt/specs/video/background.yaml index a00a82e..b4e3e3a 100644 --- a/vt/specs/video/background.yaml +++ b/vt/specs/video/background.yaml @@ -16,7 +16,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/video/visual.yaml b/vt/specs/video/visual.yaml index 47959e3..c3341ab 100644 --- a/vt/specs/video/visual.yaml +++ b/vt/specs/video/visual.yaml @@ -16,7 +16,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/animated.yaml b/vt/specs/visual/animated.yaml index 183afb2..580dd77 100644 --- a/vt/specs/visual/animated.yaml +++ b/vt/specs/visual/animated.yaml @@ -16,7 +16,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/transform.yaml b/vt/specs/visual/transform.yaml index e13c627..1a42257 100644 --- a/vt/specs/visual/transform.yaml +++ b/vt/specs/visual/transform.yaml @@ -14,7 +14,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/visual-1.yaml b/vt/specs/visual/visual-1.yaml index d704165..14f2afb 100644 --- a/vt/specs/visual/visual-1.yaml +++ b/vt/specs/visual/visual-1.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/visual-animation-1.yaml b/vt/specs/visual/visual-animation-1.yaml index e4ac560..29a9015 100644 --- a/vt/specs/visual/visual-animation-1.yaml +++ b/vt/specs/visual/visual-animation-1.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/visual-animation-2.yaml b/vt/specs/visual/visual-animation-2.yaml index cff7ab7..16b4b2d 100644 --- a/vt/specs/visual/visual-animation-2.yaml +++ b/vt/specs/visual/visual-animation-2.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/visual-layout.yaml b/vt/specs/visual/visual-layout.yaml index 0358652..9b18156 100644 --- a/vt/specs/visual/visual-layout.yaml +++ b/vt/specs/visual/visual-layout.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/visual-multiple.yaml b/vt/specs/visual/visual-multiple.yaml index a91fb29..470c2aa 100644 --- a/vt/specs/visual/visual-multiple.yaml +++ b/vt/specs/visual/visual-multiple.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/specs/visual/visual-snow-effect.yaml b/vt/specs/visual/visual-snow-effect.yaml index 8148e76..a1c0c43 100644 --- a/vt/specs/visual/visual-snow-effect.yaml +++ b/vt/specs/visual/visual-snow-effect.yaml @@ -15,7 +15,7 @@ resources: width: 1920 height: 1080 click: - actionPayload: + payload: actions: nextLine: {} colorId: layoutColor1 diff --git a/vt/static/main.js b/vt/static/main.js index 391e1d8..5513dbe 100644 --- a/vt/static/main.js +++ b/vt/static/main.js @@ -137,7 +137,9 @@ const init = async () => { const assetBufferMap = assetBufferManager.getBufferMap(); const routeGraphics = createRouteGraphics(); - const autoCompleteRenderedLines = !!window?.RTGL_VT_DEBUG; + // VT relies on render-complete to drive fromComplete/auto-mode flows in both + // local and docker runs. Keep the completion signal enabled for all VT pages. + const autoCompleteRenderedLines = true; window.takeVtScreenshotBase64 = async (label) => { if (label) { From 1975370c14d9389e7068b434480446dcc747eb57 Mon Sep 17 00:00:00 2001 From: Luciano Hanyon Wu Date: Sun, 15 Mar 2026 23:30:41 +0800 Subject: [PATCH 3/4] Fix VT manual canvas sizing --- scripts/sync-vt-route-graphics.js | 2 +- vt/static/main.js | 19 ++++++++++++------- vt/templates/default.html | 20 ++++++++++++++++++++ 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/scripts/sync-vt-route-graphics.js b/scripts/sync-vt-route-graphics.js index b651e2d..d819300 100644 --- a/scripts/sync-vt-route-graphics.js +++ b/scripts/sync-vt-route-graphics.js @@ -35,7 +35,7 @@ if (!initPattern.test(source)) { const patched = source.replace( initPattern, (_, initPrefix) => - `await r.init({${initPrefix}preference:"webgl",resolution:.5,preserveDrawingBuffer:!0,clearBeforeRender:!0})`, + `await r.init({${initPrefix}preference:"webgl",resolution:(globalThis.RTGL_VT_DEBUG||navigator.webdriver)? .5 : 1,preserveDrawingBuffer:!!(globalThis.RTGL_VT_DEBUG||navigator.webdriver),clearBeforeRender:!0})`, ); fs.mkdirSync(path.dirname(targetPath), { recursive: true }); diff --git a/vt/static/main.js b/vt/static/main.js index 5513dbe..71e3314 100644 --- a/vt/static/main.js +++ b/vt/static/main.js @@ -20,6 +20,8 @@ import createRouteGraphics, { const projectData = parse(window.yamlContent); const init = async () => { + const screenWidth = projectData?.screen?.width ?? 1920; + const screenHeight = projectData?.screen?.height ?? 1080; const assets = { "lakjf3lka": { url: "/public/bg/door.png", @@ -137,9 +139,11 @@ const init = async () => { const assetBufferMap = assetBufferManager.getBufferMap(); const routeGraphics = createRouteGraphics(); - // VT relies on render-complete to drive fromComplete/auto-mode flows in both - // local and docker runs. Keep the completion signal enabled for all VT pages. - const autoCompleteRenderedLines = true; + const isAutomatedVtRun = + !!window?.RTGL_VT_DEBUG || !!window.navigator?.webdriver; + // Auto-complete only during VT automation so manual candidate browsing keeps + // the normal interaction path and does not stack text on rerenders. + const autoCompleteRenderedLines = isAutomatedVtRun; window.takeVtScreenshotBase64 = async (label) => { if (label) { @@ -236,8 +240,8 @@ const init = async () => { await routeGraphics.init({ - width: 1920, - height: 1080, + width: screenWidth, + height: screenHeight, plugins, eventHandler: async (eventName, payload) => { console.log("[vt][route-graphics:event]", eventName, payload); @@ -280,8 +284,9 @@ const init = async () => { }); await routeGraphics.loadAssets(assetBufferMap) - document.getElementById("canvas").appendChild(routeGraphics.canvas); - document.getElementById("canvas").addEventListener("contextmenu", (e) => { + const canvasHost = document.getElementById("canvas"); + canvasHost.appendChild(routeGraphics.canvas); + canvasHost.addEventListener("contextmenu", (e) => { e.preventDefault(); }); diff --git a/vt/templates/default.html b/vt/templates/default.html index 625e95c..03b392b 100644 --- a/vt/templates/default.html +++ b/vt/templates/default.html @@ -1,11 +1,31 @@ From eb91b4ff8961cf048031068a2cf849d9c31c158d Mon Sep 17 00:00:00 2001 From: Luciano Hanyon Wu Date: Sun, 15 Mar 2026 23:31:56 +0800 Subject: [PATCH 4/4] Bump version to v0.2.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26f9bdf..e092bfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "route-engine-js", - "version": "0.2.1", + "version": "0.2.2", "description": "A lightweight Visual Novel engine built in JavaScript for creating interactive narrative games with branching storylines", "repository": { "type": "git",