# 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.

Source: https://omardev29.github.io/rmp-docs/reference/classes/rmp-ui-DialogueBox.html

struct `#include <rmp/ui.h>` [include/rmp/ui.h:1416](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1416-L1438)

struct 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`

std::vector<Portrait> portraits{}

field [include/rmp/ui.h:1417](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1417)

By speaker, and by mood

### `speakers`

std::vector<Speaker> speakers{}

field [include/rmp/ui.h:1418](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1418)

A box, a name plate and a voice each

### `flow`

DialogueFlow flow{}

field [include/rmp/ui.h:1419](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1419)

The typewriter, the blips, auto-advance, timed choices

### `height`

float height = 0

field [include/rmp/ui.h:1420](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1420)

Design units; 0 = as the line needs

### `width`

float width = 0

field [include/rmp/ui.h:1421](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1421)

Design units; 0 = as wide as it is given

### `portrait_size`

float portrait_size = 96

field [include/rmp/ui.h:1422](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1422)

Design units, square

### `portrait_side`

DialogueSide portrait_side = DialogueSide::LEFT

field [include/rmp/ui.h:1423](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1423)

Which side of the line

### `name_offset`, `choices`, `pauses_world`, `style`, `name_style`, `choice_style`, `ours`

Vector2 name_offset{ 0, 0 }

DialogueChoices choices = DialogueChoices::IN_BOX

bool pauses_world = true

Style style{}

Style name_style{}

Style choice_style{}

DialogueMemory ours

field [include/rmp/ui.h:1426](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1426)

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`

bool show(rmp::Dialogue &dialogue)

void toggle_history()

function [include/rmp/ui.h:1436](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1436)

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
