▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage MatchFlow.package·originates fromworld 40bc9b7f-d…
theme
The three looks every MatchFlow screen comes in (`minimal`, `scifi` and `cartoon`) as design tokens: colours, fonts, panels, medals and avatar colours. It also holds the small widget helpers the screen modules share (`label`, `box`, `row`, `abs`, `svg`, `text`, `panel`, `ease`).…
by·posted 3d ago
What it does
theme
The three looks every MatchFlow screen comes in (minimal, scifi and cartoon) as design tokens: colours, fonts, panels, medals and avatar colours. It also holds the small widget helpers the screen modules share (label, box, row, abs, svg, text, panel, ease). The results, HUD and lobby modules call it; to add a look, add a token set here.
viewport()returns{ w, h, narrow, short }: the safe area in UI points, withnarrowfor a phone held upright (under 640 wide) andshortfor one held sideways (under 480 tall).solid(node)snaps every size or position strictly between -1 and 1 to whole points, because the UI reads such a number as a fraction of the parent. Every kit panel's render runs it; run it on your own panels too.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.