Ui XML UserInputText - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Ui XML Reference\UserInputText](#ui-xml-referenceuserinputtext)
* [text](#text)
* [fontSize](#fontsize)
* [wrapping](#wrapping)
* [color](#color)
|
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.
<UserInputText text="User Input Text" height="80" width="200" />
This XML produces the following UI:
A text frame with user input text.
Value type: string
Supports data binding
The text in the user input text frame.
<UserInputText text="User Input Text" height="80" width="200" />
Value type: number
Supports data binding
The font size in the user input text frame.
<UserInputText text="User Input Text" height="120" width="500" fontSize="80" />
Value type: boolean
Supports data binding
The status of the text wrapping in the user input text frame, where true
means the wrapping is enabled. This is false by default.
<UserInputText text="User Input Text" height="120" width="200" fontSize="80" wrapping="true" />
Value type: color
The text color in the user input text frame.
<UserInputText text="User Input Text" height="80" width="250" fontSize="40" color="r: 1, g: 1, b: 1, a: 1" />