UI Option
UI Option Dialogue
A line with choices, answered by the scroll wheel, by the cursor, or by both.
フィールド
| フィールド | 型 | デフォルト | 説明 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | ||||||||||||||||||||||||||||||||
navigation | UiDialogueNavigation? | — | How the player answers: with the scroll wheel, with the cursor, or with either | ||||||||||||||||||||||||||||||||
options | List<UiOption>? | — | The choices offered
|
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
text | Var<String>? | — | Text of this choiceプレースホルダーカラー |
tooltip | Var<String>? | — | Shown at the tooltip anchor while the cursor rests on itプレースホルダーカラー |
criteria | List<Criteria>? | — | Conditions the player must meet to TAKE this choice; it is drawn either way |
lockedReason | Var<String>? | — | Shown instead of the tooltip while the choice cannot be taken, for instance: il te faut la clefプレースホルダーカラー |
hideWhenLocked | Boolean? | — | Hide the choice entirely instead of showing it locked |
modifiers | List<Modifier>? | — | Applied when this choice is taken |
triggers | List<Ref<TriggerableEntry>>? | — | Fired when this choice is taken |
timerVar<Duration>?cancelTriggersList<Ref<TriggerableEntry>>?soundVar<Sound>?TypeWriter 共通フィールド(criteria, modifiers, triggers, speaker)
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
speaker | Ref<SpeakerEntry> | — | — |
How to use it
Set navigation to choose how players answer: KEYS (scroll to change the selection and the confirmation key to take it), CURSOR (every choice is a button), or BOTH, the default. Each option has its own text, tooltip, criteria, lockedReason (shown while the criteria fail), hideWhenLocked, modifiers and triggers. A locked option is still drawn so the player knows it exists. timer cancels the dialogue when it runs out and fires cancelTriggers. The style entry controls where the window of choices sits and how many are visible.