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.
Properties
Section titled “Properties”backgroundColor
Section titled “backgroundColor”backgroundColor:
Color
Defined in: ui/text/text-input.ts:18
color:
Color
Defined in: ui/text/text-input.ts:17
cursorPos
Section titled “cursorPos”cursorPos:
number
Defined in: ui/text/text-input.ts:25
focused
Section titled “focused”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
Section titled “fontFamily”fontFamily:
string
Defined in: ui/text/text-input.ts:15
fontSize
Section titled “fontSize”fontSize:
number
Defined in: ui/text/text-input.ts:16
maxLength
Section titled “maxLength”maxLength:
number
Defined in: ui/text/text-input.ts:20
multiline
Section titled “multiline”multiline:
boolean
Defined in: ui/text/text-input.ts:21
padding
Section titled “padding”padding:
number
Defined in: ui/text/text-input.ts:19
password
Section titled “password”password:
boolean
Defined in: ui/text/text-input.ts:22
placeholder
Section titled “placeholder”placeholder:
string
Defined in: ui/text/text-input.ts:9
placeholderColor
Section titled “placeholderColor”placeholderColor:
Color
Defined in: ui/text/text-input.ts:10
readOnly
Section titled “readOnly”readOnly:
boolean
Defined in: ui/text/text-input.ts:23
renderMode
Section titled “renderMode”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
Section titled “textAlign”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