User Tools

Site Tools


text_field

This is an old revision of the document!


Text Field


A text field is a widget element for displaying text within a scrollable box. This is useful for descriptions and other instances of multi-line text that could vary in length. It can also be used as a text entry field, allowing the player to input text.

Element Properties

IconPropertyDescription
Element IDID for the text field. This ID must be unique amongst other elements within the same widget. It is currently auto-generated but will be editable in a future update.
TextText that will be displayed in the text field.
Read-Only
FontFont that will be used for the field's text. If the “Default” option is selected, your game's default dialogue font will be used.
Font SizeFont size to use for the field's text.

Scripting

You can access and change certain properties of a text field from within a script by simply referencing the parent widget and the element by their unique IDs. See below for an example of changing the field's text. In this case, the widget has an ID of “test” and the text label has an ID of “0001”.

Changing a button's text:

widget["test"].element["0001"].text = "New Text"
text_field.1606963621.txt.gz · Last modified: 2020/12/02 18:47 by justin