Skip to content

Components

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

FieldScript nameKindDefaultWhat it does
KeykeytextemptyKey into the string tables for this node's text, or its dialog's title, e.g. menu.resume.
BodybodytextemptyKey for the question of the dialog on this node; empty leaves it as written.
TooltiptooltiptextemptyKey for this node's tooltip; empty leaves it as written.
PlaceholderplaceholdertextemptyKey for the hint the text field on this node shows while empty; empty leaves it as written.
SubstitutionssubstitutionslistemptyValues for the {name} placeholders in the translated string.
FieldScript nameKindDefaultWhat it does
NamenametextnoneThe name between the braces, without them.
ValuevaluetextnoneWhat to put there.
OptionsoptionslistemptyKeys for the rows on this node, in order: a list's options, a dialog's buttons or a menu's items.