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

icons

The game's own icon set: 24 x 24 marks cut like stencils, drawn as SVG.

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

icons

The game's own icon set: 24 x 24 marks cut like stencils, drawn as SVG.

Solid shapes with a 2 px round-ended line for detail, so they read at 16 px over a bright meadow and at 48 px
on a menu. Each icon is authored once here as SVG markup with two placeholders: @I for the main colour and
@P for the second (the "paper" that shows through a cut-out).

  local Icons = require("~.modules.icons")
  Icons.svg("eye", 24, "#1E2440", "#F6F1E4")          -- an <svg> string
  Icons.node("tin", 20, "#D9A441")                    -- a ui `svg` widget node of that size
  Icons.pattern("wave", "#1E2440")                    -- a 12 x 12 mark for a pigment's pattern (accessibility)
  Icons.names()                                        -- every icon name, sorted
  Icons.has(name)

The mock-ups' icons.js is generated from this file (ORCHESTRATION/gameui_tools/icons2js.mjs).

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.modules.icons — the game's own icon set: 24 x 24 marks cut like stencils, drawn as SVG. Solid shapes with a 2 px round-ended line for detail, so they read at 16 px over a bright meadow and at 48 px on a menu. Each icon is authored once here as SVG markup with two placeholders: @I for the main colour and @P for the second (the "paper" that shows through a cut-out). local Icons = require("~.modules.icons") Icons.svg("eye", 24, "#1E2440", "#F6F1E4") -- an <svg> string Icons.node("tin", 20, "#D9A441") -- a ui `svg` widget node of that size Icons.pattern("wave", "#1E2440") -- a 12 x 12 mark for a pigment's pattern (accessibility) Icons.names() -- every icon name, sorted Icons.has(name) The mock-ups' icons.js is generated from this file (ORCHESTRATION/gameui_tools/icons2js.mjs).

tint(art: string, main: string, second: string) → string

argtypedescription
artstring
mainstring
secondstring

has(name: string) → boolean

argtypedescription
namestring

names( ) → void

Every icon name, sorted.

svg(name: string, size: number, color: string, second: string?) → string

An icon as an <svg> string. `second` is the cut-out colour (default: a paper white).

argtypedescription
namestring
sizenumber
colorstring
secondstring?

node(name: string, size: number, color: string, second: string?, style: any?) → any

An icon as a ui node.

argtypedescription
namestring
sizenumber
colorstring
secondstring?
styleany?

pattern(name: string, color: string, size: number?) → string

A pigment's pattern mark as an <svg> string (12 x 12).

argtypedescription
namestring
colorstring
sizenumber?

patterns( ) → void

Problems

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

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬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.