add that it implements IComponent |
Added category: Interface types |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
|Text|String|Text content. | |Text|String|Text content. | ||
|Color|ColorX|Color of the text. | |Color|ColorX|Color of the text. | ||
|MaskPattern|String| | |MaskPattern|String| When rendering, replace every character with this string. | ||
|Font|FontSet|Font used for for the <code>Text</code>. | |Font|{{RootFieldType|IAssetProvider`1|[[Type:FontSet|FontSet]]}}|TypeAdv3=true|Font used for for the <code>Text</code>. | ||
|CaretPosition|Int|Position of the editing caret. | |CaretPosition|Int|Position of the editing caret. | ||
|SelectionStart|Int| | |SelectionStart|Int| Where the current selection of the text starts. | ||
|CaretColor|ColorX|Color of the editing caret. | |CaretColor|ColorX|Color of the editing caret. | ||
|SelectionColor|ColorX|Color of selected text. | |SelectionColor|ColorX|Color of selected text. | ||
Line 19: | Line 19: | ||
* [[Component:Text]] | * [[Component:Text]] | ||
* [[Component:TextRenderer]] | * [[Component:TextRenderer]] | ||
[[Category:Interface types]] |
Latest revision as of 17:02, 25 August 2025
The IText type is an Interface Type for text-focused components.
Fields Provided
Name | Type | Description |
---|---|---|
Text
|
String | Text content. |
Color
|
ColorX | Color of the text. |
MaskPattern
|
String | When rendering, replace every character with this string. |
Font
|
direct IAssetProvider`1<FontSet> | Font used for for the Text .
|
CaretPosition
|
Int | Position of the editing caret. |
SelectionStart
|
Int | Where the current selection of the text starts. |
CaretColor
|
ColorX | Color of the editing caret. |
SelectionColor
|
ColorX | Color of selected text. |