Skip to content

default views

purkkafi edited this page Apr 11, 2023 · 2 revisions

A View is responsible for handling and displaying text or other content. It is drawn on top of the stage (which displays the background, sprites, etc). This page displays info about the built-in Views and their configuration options.

Views that display text

These Views are used to display text blocks given to them with the \block instruction.

ADV Mode

\adv

The default View. It implements the classic visual novel interface, displaying text in a small dialog box. ADV Mode is capable of handling speakers, but has no options.

NVL Mode

\nvl{
    [\hcenter]
    [\vcenter]
    [\text_color{<color id>}]
    [\outline{<color id>}{<size>}]
}

NVL Mode displays text without a dialog box. It is customizable with its options, which are somewhat self-explanatory.

Views that return a result

These Views prompt the user to make some kind of decision. The resulting value can be retrieved with the result() function in a control tag.

Input View

\input{
    \block{<block id>}
    [\default{<default value>}]
}

Input View displays a LineEdit, allowing the player to type something, with the given text block as a prompt.

If specified, the default value is filled in automatically. It is also returned instead of an empty string if the player chooses to submit nothing.

Choice View

\choice{
    \block{<block id>}{{ <value> }}
    ...
}

Choice View forces the player to decide between several options.

Each option displays the given text block and corresponds to a value specified in a control tag. After the player makes the decision, the value of the selected option can be retrieved with result().

Clone this wiki locally