diff --git a/docs/RouteEngine.md b/docs/RouteEngine.md index f2b156c4..76af316a 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 ede1d9dc..8d7d8ea6 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/package.json b/package.json index 26f9bdf0..e092bfee 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", diff --git a/scripts/sync-vt-route-graphics.js b/scripts/sync-vt-route-graphics.js index da21298d..d8193003 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:(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/spec/system/renderState/addCharacters.spec.yaml b/spec/system/renderState/addCharacters.spec.yaml index 01a56901..c6718763 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 e7764f02..b46d562d 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 9b966fd4..8ff49ff2 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 8a229467..bcf683f4 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 adaa2962..1c6952be 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 f3669d41..30de4245 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 ea60d263..5d5becd5 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 71017a0e..3291249b 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 8d41d15c..86052e62 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 6d1a7380..679912c5 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 92611fa1..45718288 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 b9af74be..000a5ffe 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 e9abf70f..57aedf08 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 341888e6..4f619e50 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 581e68b0..1e738a0c 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 0bef5317..a20030c7 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 78c3ade5..21749517 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 7fe0d4c3..93d03047 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 3ac75710..ea9b83d3 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 4c6ede1c..8608e3f3 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 e7559261..27729e99 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 8afb65e2..9f28f040 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 d165f17f..86564c7b 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 dd8000ab..d38c0d61 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 35101a51..b4261a4e 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 8a7db592..7950e02a 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 4ff7119f..41cde220 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 70fd800e..f616a8ee 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 2d3fbfab..828c5c9a 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 ec808136..74c07099 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 9824726f..b81b0f7b 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 dd97dd49..f2e42673 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 85e57fab..61e22072 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 f4ef4084..7eddb67b 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 f96ae94b..8781d845 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 8ee742e6..7feabd67 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 d6e168e7..3c8c371a 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 f39fc9a3..72a842c3 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 d2464ab0..5aa14e8e 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 cb473d66..d327dba2 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 070863e9..e1c5103b 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 f2de6951..60876fce 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 b647bc27..9a62b6b0 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 9dfb8932..2f5776e7 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 de629369..aad9046a 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 40b1dc56..4259a2db 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 e53febbc..0cd41869 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 f345149f..56f5d225 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 c84101aa..e4c3d0cb 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 31f313c1..f861c87a 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 9fd67e5c..62588432 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 1131d921..0b7ce024 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 5a18385f..78cd0d1a 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 a00a82e6..b4e3e3af 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 47959e3e..c3341abc 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 183afb27..580dd773 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 e13c6270..1a42257d 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 d704165a..14f2afb2 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 e4ac560e..29a90158 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 cff7ab74..16b4b2da 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 03586520..9b18156a 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 a91fb298..470c2aad 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 8148e761..a1c0c43d 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 391e1d87..71e33143 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,7 +139,11 @@ const init = async () => { const assetBufferMap = assetBufferManager.getBufferMap(); const routeGraphics = createRouteGraphics(); - const autoCompleteRenderedLines = !!window?.RTGL_VT_DEBUG; + 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) { @@ -234,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); @@ -278,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 625e95c9..03b392b3 100644 --- a/vt/templates/default.html +++ b/vt/templates/default.html @@ -1,11 +1,31 @@