Text Area
The Text Area Object allows the user to add multiline text with a background to their Project. It can be completely customized in the Attributes.

Attributes
The Object's Attributes can be used to fully customize the Object. Explained below, they are:
Transformation

The Transformation Attributes deal with placement, rotation, and size in XY space. More information can be found here.
Text Area

The Text Area Attributes provide crucial data for a Text Area Object.
There are two ways the Text Area Attribute can be incorporated in the Object. That is either as Static Text or Translation. This can be switched using the text or translation icons to the right, in that order.

Static Text

When Static Text is selected, the Attributes are:
Textis the text itself which will be displayed in the Text Area.Word Wrapcan be enabled and disabled. When it is enabled, the text fits within the confines of the Text Area. If disabled, the text will be in one line and may run off the Text Area, causing some text to not be visible. In this case, please adjust the dimensions of the Text Area.
Translation

When Translation is selected, the Attributes are:
Translationlets the user choose the key of the current language (which is established in the Project Settings). In the image above, the selected key isphrase.Word Wrapcan be enabled and disabled. When it is enabled, the text fits within the confines of the Text Area. If disabled, the text will be in one line and may run off the Text Area, causing some text to not be visible. In this case, please adjust the dimensions of the Text Area.
Text

The Text Attributes offer the user options to customize the Text:
Line height (%)determines the placement of the text within the text box.Colordecides the color of the text.
Font

The Font Attributes offer the user options to customize the Text Area's font. Please note that while Text Areas are capable of handling variable fonts, only the default style will be used, as the configurable Attributes are not available for this Object.
Familyoffers two different font types:ManropandSource Code Pro. More fonts can be added by the user in Project Settings.Sizedetermines the size of the font in pixels.
Style

The Style Attributes offer the user options to customize further visual aspects of the Text Area:
The
Background Coloris the color of the Text Area box which appears behind the text.CSS Classescontain the CSS class names of the Object.Stylesheetcontains the CSS stylesheet of the Object. This can override any stylesheet provided in the Project Settings or a Scene2D. To address these in the Logic, please refer to the Object 2D Nodes.
Tag

This Attribute manages the tags for the Text Area. See more on tags here.
Last updated
Was this helpful?