跳到主要内容

UI Option

UI Option Dialogue

A line with choices, answered by the scroll wheel, by the cursor, or by both.

字段

字段类型默认值描述
textVar<String>?——占位符颜色多行
durationVar<Duration>?—How long the line takes to type out; zero shows it at once
styleRef<UiDialogueStyleEntry>?—Look this dialogue takes; leave empty for the server's own
portraitVar<String>?—Picture of the speaker drawn beside their name, for instance portrait_aldric
navigationUiDialogueNavigation?—How the player answers: with the scroll wheel, with the cursor, or with either
optionsList<UiOption>?—The choices offered
UiOption(7)
字段类型默认值描述
textVar<String>?—Text of this choice占位符颜色
tooltipVar<String>?—Shown at the tooltip anchor while the cursor rests on it占位符颜色
criteriaList<Criteria>?—Conditions the player must meet to TAKE this choice; it is drawn either way
lockedReasonVar<String>?—Shown instead of the tooltip while the choice cannot be taken, for instance: il te faut la clef占位符颜色
hideWhenLockedBoolean?—Hide the choice entirely instead of showing it locked
modifiersList<Modifier>?—Applied when this choice is taken
triggersList<Ref<TriggerableEntry>>?—Fired when this choice is taken
timerVar<Duration>?—Cancels the dialogue when it runs out; zero for no countdown
cancelTriggersList<Ref<TriggerableEntry>>?—Fired when the countdown cancels the dialogue
soundVar<Sound>?—Played once as the line appears
TypeWriter 通用字段(criteria, modifiers, triggers, speaker)
字段类型默认值描述
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—
speakerRef<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.