Conversations saved in game/resources/dialogue/ play once at their night and phase in a paper box with talking heads; example: the morning of day 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
996 B
GDScript
22 lines
996 B
GDScript
class_name DialogueLine
|
|
extends Resource
|
|
## One thing said in a conversation (Conversation): who says it (DialogueSpeaker) and what. The
|
|
## text takes BBCode for a word or two: [i]italics[/i], [b]bold[/b], [color=#b02010]red[/color],
|
|
## [font_size=48]big[/font_size], [wave]wavy[/wave], [shake]shaky[/shake]. The look settings
|
|
## change the whole line from the speaker's.
|
|
|
|
@export var speaker: DialogueSpeaker
|
|
@export_multiline var text := ""
|
|
|
|
@export_group("Look (over the speaker's)")
|
|
## Another face for this line (an angry one, say); empty: the speaker's portrait.
|
|
@export var portrait: Texture2D
|
|
## Transparent: the speaker's text color.
|
|
@export var text_color := Color(0.0, 0.0, 0.0, 0.0)
|
|
## 0: the speaker's.
|
|
@export_range(0, 120) var font_size := 0
|
|
## The whole line in italics or bold (also when the speaker's words aren't).
|
|
@export var italic := false
|
|
@export var bold := false
|
|
## 0: the speaker's speed.
|
|
@export_range(0.0, 200.0, 1.0, "suffix:letters/s") var letters_per_second := 0.0
|