Textdisplay Player Option
Player Option dialogue with Text Display(relative position)
字段
| 字段 | 类型 | 默认值 | 描述 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
startTriggers | List<Ref<TriggerableEntry>> | empty | Triggers to fire when this dialogue starts. | ||||||||||||||||||||||||
endTriggers | List<Ref<TriggerableEntry>> | empty | Triggers to fire when this dialogue ends. | ||||||||||||||||||||||||
text | Var<String> | — | —占位符颜色多行 | ||||||||||||||||||||||||
options | List<Option> | empty | —
|
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
text | Var<String> | — | Text for this option.多行 |
position | Var<Position> | ORIGIN | Optional position override for this option - when set it overrides the dialog's global position for this option. Use the position capture tool in-game. |
criteria | List<Criteria> | empty | The criteria that must be met for this option to show. |
modifiers | List<Modifier> | empty | The modifiers to apply when this option is chosen. |
triggers | List<Ref<TriggerableEntry>> | empty | The triggers to fire when this option is chosen. |
durationVar<Duration>ZEROsoundVar<Sound>EMPTYoffsetXVar<Double>0.0offsetYVar<Double>0.0offsetZVar<Double>2.0scaleVar<Double>1.0backgroundColorVar<Color>BLACK_BACKGROUNDtextOpacityVar<Double>1.0viewRangeVar<Double>64.0showBackgroundVar<Boolean>truespeakerBackgroundColorVar<Color>textBackgroundColorVar<Color>BLACK_BACKGROUNDselectedOptionBackgroundColorVar<Color>unselectedOptionBackgroundColorVar<Color>timerVar<Duration>ZEROcancelTriggersList<Ref<TriggerableEntry>>emptyTypeWriter 通用字段(criteria, modifiers, triggers, speaker)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
speaker | Ref<SpeakerEntry> | — | — |
How to use it
Use this variant when the menu should stay in front of the player rather than at the NPC. The display is recomputed every tick from the player's position and view direction and follows with smoothing.
- Offsets.
offsetXis to the right,offsetYup andoffsetZforward (default2.0), all relative to the player, measured on the horizontal facing direction. - Option position. An option
positionis read as a relative offset (right, up, forward) from the player, not as a world position. A value of 0,0,0 means "stack it under the text". - Choosing and timer. Same controls as the world option dialogue: scroll to highlight, right-click to confirm, optional
timerwithcancelTriggers. - There is no
billboardfield: the text always faces the player.