LocalizedText
Shows text from the string tables in the game's language: Key for the node's text or dialog title, and keys for a dialog's question, a tooltip, a field's hint and a list's, dialog's or menu's rows. Values fill in {name} placeholders.
On this page
Add it
+ Add node → Localized Label creates a node with it already on. Already have a node for it? Add component → LocalizedTextComponent.
From a script
A script on the same node writes these fields by name. LocalizedTextComponent is the name to pass.
rgs
set_text("LocalizedTextComponent", "key", "");
set_text("LocalizedTextComponent", "body", "");
set_text("LocalizedTextComponent", "tooltip", "");
set_text("LocalizedTextComponent", "placeholder", ""); Fields
| Field | Script name | Kind | Default | What it does | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Key | key | text | empty | Key into the string tables for this node's text, or its dialog's title, e.g. menu.resume. | |||||||||||||||
| Body | body | text | empty | Key for the question of the dialog on this node; empty leaves it as written. | |||||||||||||||
| Tooltip | tooltip | text | empty | Key for this node's tooltip; empty leaves it as written. | |||||||||||||||
| Placeholder | placeholder | text | empty | Key for the hint the text field on this node shows while empty; empty leaves it as written. | |||||||||||||||
| Substitutions | substitutions | list | empty | Values for the {name} placeholders in the translated string. | |||||||||||||||
| |||||||||||||||||||
| Options | options | list | empty | Keys for the rows on this node, in order: a list's options, a dialog's buttons or a menu's items. | |||||||||||||||