hud
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
hud
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.hud — lo que se ve durante la carrera. Lee el estado del director de carrera (`game.Race`) y lo dibuja: vuelta, puesto, monedas, velocidad, cronómetro, la cuenta atrás en el centro, el aviso de cada vuelta y el resultado final. Las reglas están todas en el director; aquí solo se enseña lo que dice. Geometría: `position = "absolute"` ancla con NÚMEROS en `left` / `top` / `right` / `bottom`, y un contenedor a pantalla completa se hace anclando los cuatro a 0. Pasar "18px" como cadena no ancla nada.
label(t: ?, style: ?) → void
Piezas
| arg | type | description |
|---|---|---|
| t | ? | |
| style | ? |
panel(style: ?, children: ?) → void
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? |
row(style: ?, children: ?) → void
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? |
overlay(style: ?, children: ?) → void
Un contenedor anclado a los cuatro lados: ocupa la pantalla entera.
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? |
placeLabel(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
itemText(row: ?) → void
Qué enseña el cuadro de objetos: la caja vacía, los usos que quedan, o los segundos que le quedan al objeto de duración. El icono y el nombre del objeto llegan con el sistema de objetos.
| arg | type | description |
|---|---|---|
| row | ? |
itemColor(row: ?) → void
| arg | type | description |
|---|---|---|
| row | ? |
director( ) → void
La pantalla
localRow(race: ?) → void
| arg | type | description |
|---|---|---|
| race | ? |
build( ) → void
mount( ) → void
Montaje
unmount( ) → void
hide( ) → void
El HUD se queda escondido mientras el menú está delante, y aparece cuando empieza la carrera.
show( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.