跳转到内容

TextInputData

此内容尚不支持你的语言。

Defined in: ui/text/text-input.ts:7

core-ui.ts

The stable UI surface promoted into the top-level esengine namespace (text, UINode box visuals, interaction, layout, theme).

This is the curated public UI API. The complete UI module surface — which also includes low-level text/atlas internals and engine-internal composition glue (e.g. EntityStateMap, ensureComponent) — lives in ./ui and is imported module-directly by the SDK code that needs it. Those internals are intentionally NOT re-exported here, so the public esengine namespace stays a stable, intentional surface.

Re-exported wholesale by core.ts.

backgroundColor: Color

Defined in: ui/text/text-input.ts:18


color: Color

Defined in: ui/text/text-input.ts:17


cursorPos: number

Defined in: ui/text/text-input.ts:25


focused: boolean

Defined in: ui/text/text-input.ts:24


font: number

Defined in: ui/text/text-input.ts:14

A font asset the game SHIPS. When set it wins over fontFamily, exactly as Text.font does — a field on a skinned panel is drawn in the game’s own typeface, not in whatever the host happens to have.


fontFamily: string

Defined in: ui/text/text-input.ts:15


fontSize: number

Defined in: ui/text/text-input.ts:16


maxLength: number

Defined in: ui/text/text-input.ts:20


multiline: boolean

Defined in: ui/text/text-input.ts:21


padding: number

Defined in: ui/text/text-input.ts:19


password: boolean

Defined in: ui/text/text-input.ts:22


placeholder: string

Defined in: ui/text/text-input.ts:9


placeholderColor: Color

Defined in: ui/text/text-input.ts:10


readOnly: boolean

Defined in: ui/text/text-input.ts:23


renderMode: TextRenderMode

Defined in: ui/text/text-input.ts:32

Glyph pipeline for the field text — mirrors Text.renderMode, propagated to the child Text the input plugin renders through (Auto / Bitmap / Sdf).


textAlign: TextAlign

Defined in: ui/text/text-input.ts:29

Where the value sits in the field: Left, Center or Right. A single line keeps the alignment only while it fits — past that the field scrolls to follow the caret, as a left-aligned one always has.


value: string

Defined in: ui/text/text-input.ts:8