SusDialogueBox

Dialogue molecule — speaker, portrait, SusTextFx reveal (Instant/PerChar/Vertex), choices, and UI cues; game owns the dialogue graph, kit owns the presentation.
Package
SusKit · Molecules (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Reveal | Prop<string> | "Instant" | |
CharsPerSecond | Prop<float> | 30f | |
AutoAdvanceSeconds | Prop<float> | 0f | |
BlipMinIntervalMs | Prop<float> | 45f |
Slots
No slots.
Events
| Name | Field | Payload |
|---|---|---|
Advance | OnAdvance | — |
Choice | OnChoice | string |
Completed | OnCompleted | — |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-dialogue-boxsus-dialogue-box__bodysus-dialogue-box__choicesus-dialogue-box__choicessus-dialogue-box__choices--emptysus-dialogue-box__chromesus-dialogue-box__continuesus-dialogue-box__continue--hiddensus-dialogue-box__continue-hintsus-dialogue-box__headersus-dialogue-box__portraitsus-dialogue-box__portrait--emptysus-dialogue-box__speakersus-dialogue-box__speaker--emptysus-dialogue-box__textsus-dialogue-box--hidden
Usage
Presentation only — feed lines from your own dialogue graph. Reveal rides SusTextFx.Reveal01 (no second ticker). Open/Close/Confirm cues fire through the UI audio profile; per-glyph blips use PlayCustom("dialogue.blip").
csharp
var box = new SusDialogueBox();
box.Reveal.Value = "PerChar"; // Instant | PerChar | Vertex
box.CharsPerSecond.Value = 30f;
box.Show(new SusDialogueLine(
"Captain",
"We jump in <wave>three</wave>…",
portrait: null,
choices: new[]
{
new SusDialogueChoice("go", "Jump now"),
new SusDialogueChoice("wait", "Hold"),
}));
box.OnChoice = id => { /* branch */ };
box.OnAdvance = () => { /* next line when no choices */ };
// box.Advance(); box.Skip(); box.Hide();| Prop / API | Role |
|---|---|
Reveal | Instant / PerChar / Vertex |
CharsPerSecond | Reveal speed for PerChar/Vertex |
AutoAdvanceSeconds | After reveal, wait then Advance() (0 = manual only) |
BlipMinIntervalMs | Throttle for dialogue.blip |
Show(line) / Advance() / Skip() / Hide() | Line lifecycle |
OnAdvance / OnChoice / OnCompleted | Host hooks |
Notes
- Storybook story Dialogue Box (
dialogue-box). - Hub shot
kit-dialogue-box.png— showcase, captured live from Play mode.