UI Spoken
UI Spoken Dialogue
A line spoken in GUI space, with no choice to make. Every optional field is NULLABLE and coalesced where it is read. Gson does not apply Kotlin constructor defaults: a field absent from a page — or written as null — arrives as null whatever the declaration says. A non-null type here throws on the first dialogue that omits it, which is exactly what happened the first time this entry was tried in game.
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
text | Var<String>? | — | —占位符颜色多行 |
duration | Var<Duration>? | — | How long the line takes to type out; zero shows it at once |
style | Ref<UiDialogueStyleEntry>? | — | Look this dialogue takes; leave empty for the server's own |
portrait | Var<String>? | — | Picture of the speaker drawn beside their name, for instance portrait_aldric |
sound | Var<Sound>? | — | Played once as the line appears |
TypeWriter 通用字段(criteria, modifiers, triggers, speaker)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
speaker | Ref<SpeakerEntry> | — | — |