From 2f4daaef3a33d6e63602bf11802d470cae3c4d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8B=E3=81=BF=E3=81=AA=E3=83=BC=E5=85=88=E7=94=9F?= Date: Wed, 20 May 2026 01:46:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=8E=E3=83=BC=E3=83=89=E3=82=BF=E3=82=A4?= =?UTF-8?q?=E3=83=88=E3=83=AB=20=E3=83=97=E3=83=AC=E3=83=95=E3=82=A3?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=82=B9=E3=82=92=E7=9F=AD=E7=B8=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- README.md | 2 +- web/prompt_random_choice.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4794a4..81cea73 100644 --- a/README.md +++ b/README.md @@ -506,7 +506,7 @@ courtyard garden, ### 姿勢、視線、動作 ```text -()|standing|sitting|walking|looking at viewer|waving|hands on hips|jumping|running|skipping|looking up +()|standing|sitting|walking|looking at viewer|waving|hands on hips|jumping high|running|skipping|looking up ``` ### 表情 diff --git a/web/prompt_random_choice.js b/web/prompt_random_choice.js index 70dc2e4..c3ebca2 100644 --- a/web/prompt_random_choice.js +++ b/web/prompt_random_choice.js @@ -22,6 +22,9 @@ app.registerExtension({ return; } + const nodeName = String(nodeData?.name ?? ""); + const prefix = nodeName === "PromptRandomChoiceEx" ? "Ex" : "Ch"; + const maxTitleLength = nodeName === "PromptRandomChoiceEx" ? 36 : 40; const originalOnExecuted = nodeType.prototype.onExecuted; nodeType.prototype.onExecuted = function (message) { @@ -32,9 +35,9 @@ app.registerExtension({ const changeEvery = Number(message?.change_every?.[0] ?? 1); if (changeEvery <= 1) { - this.title = `Choice: ${shorten(selectedTitle)}`; + this.title = `${prefix}: ${shorten(selectedTitle)}`; } else { - this.title = `Choice: ${shorten(selectedTitle)} (${repeatIndex}/${changeEvery})`; + this.title = `${prefix}: ${shorten(selectedTitle)} (${repeatIndex}/${changeEvery})`; } this.setDirtyCanvas?.(true, true);