User Tools

Site Tools


text_label

Text Label


A text label is a widget element for displaying plain text (for example, a header or label to accompany an adjacent element or group of elements).

Element Properties

IconPropertyDescription
Element IDID for the text label. 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 on the text label.
FontFont that will be used for the label's text. If the “Default” option is selected, your game's default dialogue font will be used.
Font SizeFont size to use for the label's text.

Scripting

You can access and change certain properties of a text label 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 label'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_label.txt · Last modified: 2021/04/21 20:24 by justin