preview.module
README.md
preview
Shows a scoreKit part on all nine checked screens at once (upright and small phones, two sideways phones, a tablet both ways, a laptop at 150%, 1080p and an ultrawide), each drawn at its own size in logical points and scaled into its frame. Preview.sheet(part, look, { w, h, spec, t, mode, anchor }) returns one node: part is card (the results card, your spec or a sample), run (the in-run layout with stand-in touch buttons drawn as outlines) or popups (a 20-hit burst inside one second, frozen at time t). Preview.part draws one screen, Preview.burst builds the burst and Preview.touchControls the stand-in buttons. Used by the Hall of Fame gallery captures and the test suite.
local Preview = require("scoreKit.preview")
ui.registerScreen("sheet", Preview.sheet("card", "fantasy", { w = 1920, h = 1080, spec = mySpec }), 90)
ui.showScreen("sheet")