From 4fb799112a391f2283f9ad5ffc89ebdb2fe2a388 Mon Sep 17 00:00:00 2001 From: shanexi Date: Sun, 27 Oct 2024 09:42:31 +0800 Subject: [PATCH] Convert to save video --- web/shellagent.js | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/web/shellagent.js b/web/shellagent.js index bd289ae..dc57a62 100644 --- a/web/shellagent.js +++ b/web/shellagent.js @@ -279,14 +279,37 @@ app.registerExtension({ if (o.type === 'STRING') { toOutput.push({ - content: `${o.name} -> Output Text`, - callback: () => { - const node = addNode("ShellAgentPluginOutputText", this); - this.connect(0, node, 0); + content: o.name, + submenu: { + options: [ + { + content: `Output Text`, + callback: () => { + const node = addNode("ShellAgentPluginOutputText", this); + this.connect(0, node, 0); + } + } + ] } }) } + if (o.type === "VHS_FILENAMES") { + toOutput.push({ + content: o.name, + submenu: { + options: [ + { + content: `Save Video - VHS`, + callback: () => { + const node = addNode("ShellAgentPluginSaveVideoVHS", this); + this.connect(0, node, 0); + } + } + ] + } + }) + } } if (toOutput.length) {