# rmp::ui::DialogueStage

> A visual novel's stage: big portraits of who is on it, the speaker in front and the rest dimmed, and the line in a box under them.

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

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

struct DialogueStage

A visual novel's stage: big portraits of who is on it, the speaker in front and the rest dimmed, and the line in a box under them.

### `portraits`

std::vector<Portrait> portraits{}

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

By speaker, and by mood

### `speakers`

std::vector<Speaker> speakers{}

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

A box, a name plate and a voice each

### `flow`

DialogueFlow flow{}

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

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

### `portrait_height`

float portrait_height = 300

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

Design units

### `enter_seconds`, `enter_offset`

float enter_seconds = 0.3f

float enter_offset = 80

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

Who comes on stage slides in from their side and fades in, in this long.

`enter_offset`: ...from this far, in design units

### `focus_seconds`, `focus_lift`, `focus_scale`, `pauses_world`, `style`, `name_style`, `choice_style`, `dimmed`, `ours`

float focus_seconds = 0.15f

float focus_lift = 10

float focus_scale = 1.04f

bool pauses_world = true

Style style{}

Style name_style{}

Style choice_style{}

Color dimmed = CLITERAL(Color){ 120, 120, 130, 255 }

DialogueMemory ours

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

The speaker comes forward — full colour, a little higher and bigger — in this long, and whoever stops speaking goes back as long.

`focus_lift`: Design units the speaker rises

`focus_scale`: The speaker's size against the rest

`pauses_world`: For `rmp::behavior::Talker:` the scene below waits

`style`: The box under the portraits

`name_style`: The name plate

`choice_style`: Each choice

`dimmed`: The tint of who is not speaking

`ours`: Its state between frames; yours to read

### `show`

bool show(rmp::Dialogue &dialogue)

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

Draws the stage, the line or the choices, and takes the player's answer. True while the dialogue has something to show.

### `shake`

void shake(float strength = 12, float seconds = 0.4f)

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

The whole stage shakes, from `strength` design units down to none: a command's, <<quake>> -> `stage.shake()`.

### `flash`

void flash(Color color = WHITE, float seconds = 0.3f)

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

The screen goes `color` and back, over `seconds`: a flash, a cut.
