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 ID||ID 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.|
|Text||Text that will be displayed on the text label.|
|Font||Font 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 Size||Font size to use for the label's text.|
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";