Return the color of the progress bar
Return the TrueType font file name used for the text. Empty if no custom font is used.
Return the id of the package that contains the TrueType font file name used for the text. Empty if no custom font is used or no package is specified (and the package containing the script is used).
Return the font size
Return the game object that this UI element is attached to. Returns undefined if the element isn't attached to a game object.
Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.
Return the currently displayed progress (0 to 1)
Return the currently displayed text
Return the color of the text
Return if the text is bold
Return whether the widget is currently enabled (see setEnabled).
Return if the text is italic
Return whether the widget is currently visible (see setVisible).
Set the color of the progress bar
Set if the text is bold
Set whether the widget is enabled. When a widget is disabled, users can't interact with it and it is greyed out. When a widget that contains other widgets (like VerticalBox) is disabled, all its children behave as if disabled, too. By default, widgets are enabled.
Whether to enable the widget.
Set the TrueType font file used for the text. If a custom font is used, the bold and italic settings don't have an effect. Place your font files in the "Fonts" folder of your package.
The filename of the TTF file to load. Set to empty string to use the standard font (and enable bold and italic settings).
The id of the package that contains the TTF file (in the Fonts folder). Can usually be empty when used from scripts to use the same package that contains the script file, but you need to explicitly pass refPackageId for the current package or a package id when you use it in a callback. You can find package ids in the manifest.json file in package folders. Usually you won't use this parameter, unless you have a specific reason to load a font from a different package than where the script is located.
Set the font size.
The new font size. Default: 12
Set if the text is italic
Set the displayed progressed.
Progress to show. 0 is not progress, 1 shows the full bar.
Set the displayed text. Can include "\n" to indicate new lines.
The new text
Set the color of the text
Set whether the widget is visible. When a widget that contains other widgets (like VerticalBox) is invisible, all its children are invisible, too. The layout of widgets is updated when visibility changes, and invisible widgets are treated as if they don't exist.
Whether the widget is visible.
Progress bar UI element