Type:IText: Difference between revisions

From Resonite Wiki
add that it implements IComponent
update
 
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>. <!-- WEIRD: using the RootField thingy doesn't work here? why? -->
|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.

Latest revision as of 20:30, 23 February 2025

The IText type is an Interface Type for text-focused components.

Fields Provided

Fields
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.

Implements

Implemented By