From b0457a17b3b1122417d43edb61fee63312ccf4a0 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Tue, 24 Nov 2026 17:36:04 -0500 Subject: [PATCH] feat(npc-dialogue): add a descriptive narrative presentation to event nodes An event node's text could only render as the amber left-barred line. Some beats are the narrator setting a scene rather than the contact speaking, and that styling made them read as dialogue. Event nodes now carry a presentation: the existing event line, or a centered muted descriptive narrative with no speaker and no accent bar. Rendering only: the walker, the effect and the tokens behave the same. The canvas card shows a narrative tag so the two are distinguishable while authoring. --- .../admin/npc-dialogue/NodeEditDialog.tsx | 29 ++++++++++++++++--- .../admin/npc-dialogue/NpcDialogueNode.tsx | 13 ++++++++- .../frontend/personnel/NpcConversation.tsx | 15 +++++++++- src/lib/npc-dialogue/AGENTS.md | 5 ++++ src/lib/npc-dialogue/dialogue.ts | 7 +++++ 5 files changed, 63 insertions(+), 6 deletions(-) diff --git a/src/components/admin/npc-dialogue/NodeEditDialog.tsx b/src/components/admin/npc-dialogue/NodeEditDialog.tsx index 6786a21b..8f51d731 100644 --- a/src/components/admin/npc-dialogue/NodeEditDialog.tsx +++ b/src/components/admin/npc-dialogue/NodeEditDialog.tsx @@ -499,13 +499,11 @@ export function NodeEditDialog({ {node.type === "event" && (
- + patch({ body: next || undefined })} - placeholder="Describe what happens. Shown as a speaker-less narrative line." + placeholder="Describe what happens, or what the contact says." rows={3} className="rounded bg-zinc-800 border border-white/20 px-2 py-1.5 text-sm text-white placeholder:text-white/30 resize-y" /> @@ -514,6 +512,29 @@ export function NodeEditDialog({

+
+ + +

+ Descriptive narrative reads as the narrator describing a scene, with no + speaker and no accent bar. +

+
+