Ui XML Reference\UserInputText

A text frame with user input text. The key difference between this frame and a normal text frame is how it is rendered. This frame renders text using the user's system font, meaning the text may be blurrier than the standard text frame. The intended use for this frame is to display text the user has typed themselves (such as entering their username). By default, this frame type attempts to fill its parent.

Example Usage

<UserInputText layout="flex" text="User Input Text" height="80" width="200" />

This XML produces the following UI:
image

text

Value type: string

Supports data binding

Description


The text in the user input text frame.

Example Usage

<UserInputText layout="flex" text="User Input Text" height="80" width="200" />

fontSize

Value type: number

Supports data binding

Description


The font size in the user input text frame.

Example Usage

<UserInputText layout="flex" text="User Input Text" height="120" width="500" fontSize="80" />

wrapping

Value type: boolean

Supports data binding

Description


The status of the text wrapping in the user input text frame, where true means the wrapping is enabled. This is false by default.

Example Usage

<UserInputText layout="flex" text="User Input Text" height="120" width="200" fontSize="80" wrapping="true" />

color

Value type: color

Supports data binding

Description


The text color in the user input text frame.

Example Usage

<UserInputText layout="flex" text="User Input Text" height="80" width="250" fontSize="40" color="r: 1, g: 1, b: 1, a: 1" />