Skip to main content

Module ui

Module ui 

Source
Expand description

Small anchored UI primitives shared by both dimensions.

Structs§

UiActions
Physical bindings remain game-owned; these actions drive the interaction state.
UiButton
Button snapshot, retaining quick taps with both edges between fixed ticks.
UiCapture
Ownership signals for explicit gameplay routing. Modal games can block all gameplay actions; overlays can block only shared click/navigation actions.
UiId
Stable game-owned identity. IDs must be unique within an update’s regions.
UiInput
One fixed tick’s UI input. Supply viewport-mapped positions; None denotes bars/unavailable motion. Focus loss cancels interactions and clears focus.
UiRect
A sized UI rectangle with normalized anchor and pivot coordinates.
UiRegion
Hit region in reference UI units. Last listed region wins overlapping hits, including disabled regions, which block clicks reaching lower regions.
UiResponse
Current presentation state and one-tick events for an identified region.
UiState
Small immediate UI interaction state. Response storage is reused after its high-water mark; hit testing/navigation is linear in the submitted regions. Update once per fixed tick before gameplay, then draw the responses.