rmp::ui::DialogueBox
The classic box: along the bottom of the screen, the speaker's portrait and name beside the line, the choices as buttons under it.
portraits
By speaker, and by mood
speakers
A box, a name plate and a voice each
flow
The typewriter, the blips, auto-advance, timed choices
height
Design units; 0 = as the line needs
width
Design units; 0 = as wide as it is given
portrait_size
Design units, square
portrait_side
Which side of the line
name_offset, choices, pauses_world, style, name_style, choice_style, ours
The name plate over the box's top edge, moved this far from its top-left corner ({ 16, -18 }: a tab on the frame); { 0, 0 } = above the line.
choices: Where the choices go
pauses_world: For rmp::behavior::Talker: the scene below waits
style: The box
name_style: The name plate
choice_style: Each choice
ours: Its state between frames; yours to read
show, toggle_history
Draws the line or the choices, and takes the player's answer. True while the dialogue has something to show.
toggle_history: The lines read so far, in place of the box