Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage metropolisUi.package·originates fromworld 0a0b119f-a…

card

Two cards laid over play: a district's rule card (how this district plays: its eyes,

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

card

Two cards laid over play: a district's rule card (how this district plays: its eyes,

its roads, its cover, its ways out, and what colour opens) and a decision (a mission or a job asking which way).

  local Card = require("~.screens.card")
  local tree = Card.rules(data, env)         -- data: Present.ruleCard(district, t) + { close = string }
  local tree = Card.decision(data, env)      -- data: Present.decision(objective, t) + { selected = index, timer = { left, duration }? }
  local tree = Card.subtitle(data, env)      -- data: Present.subtitle(line, t, settings); a line of speech at the bottom

env: { frame, text, glyph }
Callback ids (through modules.app, where the rule card is the screen "rules"): "rules:back";
"decision:<optionId>" (the app's confirm sends the selected one).
The rule card is shown the first time a district is entered and from the map; the decision holds the mission
until one option is chosen (it cannot be closed).

The interface is documented in the header of init.luau; this file repeats it for the asset browser.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

metropolisUi.screens.card — two cards laid over play: a district's rule card (how this district plays: its eyes, its roads, its cover, its ways out, and what colour opens) and a decision (a mission or a job asking which way). local Card = require("~.screens.card") local tree = Card.rules(data, env) -- data: Present.ruleCard(district, t) + { close = string } local tree = Card.decision(data, env) -- data: Present.decision(objective, t) + { selected = index, timer = { left, duration }? } local tree = Card.subtitle(data, env) -- data: Present.subtitle(line, t, settings); a line of speech at the bottom env: { frame, text, glyph } Callback ids (through modules.app, where the rule card is the screen "rules"): "rules:back"; "decision:<optionId>" (the app's confirm sends the selected one). The rule card is shown the first time a district is entered and from the map; the decision holds the mission until one option is chosen (it cannot be closed).

rules(data: any, env: any) → any

argtypedescription
dataany
envany

decision(data: any, env: any) → any

argtypedescription
dataany
envany

subtitle(data: any, env: any) → any

argtypedescription
dataany
envany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.