function · ui
text
Records one text widget.
ui.text(label, value?)
- Stable ID
ui.text- Owner
- app.ScriptPackageHost
- Authority
- presentation
- Timing
- composition
- Availability
- Phase 14 package callbacks
- Side effects
- records bounded detached presentation intent
- Determinism
- Host-created package identity and per-callback budgets.
- Introduced
- 1.0.0
Usage
Call during composition to append validated semantic presentation state. This function cannot mutate simulation owners.
Parameters
- label: visible text.
- value: optional value rendered beside the label.
Returns
No gameplay value. The call appends or updates semantic presentation state for the current composition pass.
Cost
Counts against the package composition instruction and surface work budgets; it does not traverse simulation ownership.
Fields
This symbol has no fields.
Errors
- None
Examples
ui.text("Selection", "No villager selected")
API history
- 1.0.0: Runtime contract published from the complete Phase 14 registry.