-
Notifications
You must be signed in to change notification settings - Fork 1
default views
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.
These Views are used to display text blocks given to them with the \block
instruction.
\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{
[\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.
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{
\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{
\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()
.