screens
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
screens
<!-- 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.ui.screens — every screen THE CITY REMEMBERS puts on the glass. Pure builders: each function returns a widget tree and touches nothing. The `Hud` component registers them and drives them from the live systems. The look is `Core.ui`'s palette and the type voice off `title-screen.png`: thin, widely tracked, off-white on near-black, with amber hairlines and nothing else saturated.
rgb(c: { number }, alpha: number?) → string
Colour
| arg | type | description |
|---|---|---|
| c | { number } | |
| alpha | number? |
rule(vertical: boolean) → void
Pieces
| arg | type | description |
|---|---|---|
| vertical | boolean |
heading(text: string, size: number, colour: string?) → any
The tracked capital heading the whole game writes in.
| arg | type | description |
|---|---|---|
| text | string | string |
| size | number | number |
| colour | string? | string? |
bar(value: number, max: number, colour: string, width: number) → void
| arg | type | description |
|---|---|---|
| value | number | |
| max | number | |
| colour | string | |
| width | number |
tickerLine(entry: any, fresh: boolean) → any
One line of the CITY MEMORY ticker: the stamp, the district, the act.
| arg | type | description |
|---|---|---|
| entry | any | table a memory entry |
| fresh | boolean | boolean whether this is the newest one |
prompt(state: any) → any
The verb the player can take right now, with the key that takes it.
| arg | type | description |
|---|---|---|
| state | any | table { prompt = { key, verb, label, detail }? } |
caption(state: any) → any
What is being said, as subtitles. The memory slice's overheard lines arrive through the bus and land here.
| arg | type | description |
|---|---|---|
| state | any | table { caption = { { speaker, line }, ... }? } |
hud(state: any) → any
The in-play HUD: what the player has, what the city thinks, and the
| arg | type | description |
|---|---|---|
| state | any | table { health, money, stars, district, districtLabel, entries, speed } |
ledger(state: any) → any
THE CITY REMEMBERS: the timeline, and how the city stands on the player
| arg | type | description |
|---|---|---|
| state | any | table { day, clock, entries, reputation, people, chains } |
title(opts: any) → any
The title screen, off `title-screen.png`: the name in thin tracked
| arg | type | description |
|---|---|---|
| opts | any | table { subtitle, prompt } |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
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.