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);