▣
module · drop-in viewer
What it does
gvc_cards
The three non-playing phase cards for Gumdrop Vale.
M.build(kind, data) returns a full-screen tree for "title", "won" or
"lost". The win card names the time left (data.secondsLeft); the lose card
names how many wells were bloomed (data.bloomCount).
A card mounts once per phase change, so unlike the HUD it does use CSS
animation: the scrim fades up, the plate rises and settles, and the eyebrow,
heading, rule and body cascade in behind it on staggered delays. Re-registering
the same tree restarts all of that, which is why the driver registers a card on
the phaseChanged edge and then leaves it alone.
Two layout facts the tree depends on
wrapis a label prop, not a style key. Awidthinstylealone clips nothing; the line runs straight off both edges of the plate. Theparagraphhelper setsprops.wrap.- The accent colour never paints text. Each card's accent (
MOTEfor the title,BLOOM_FLORAfor the win, a drained lilac for the loss) tints the border, the rule and the pill behind the hint, while the hint itself staysUI_INK— a mint or cream accent as type on a cream plate is invisible.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.