pages.module
README.md
pages
The pause menu's pages that are lists: the activity board, people and trust, the
named Wardens, garages, the impound, and what the city remembers. One layout (a title, a paper sheet of rows, a
detail card for the selected row at two columns), six row painters.
local Pages = require("~.screens.pages")
Pages.board(data, env) -- data: Present.board(rows, t) + { selected }
Pages.crew(data, env) -- data: Present.crew(rows, t) + { selected }
Pages.roster(data, env) -- data: Present.roster(rows, t) + { selected }
Pages.garages(data, env) -- data: Present.garages(rows, t) + { selected, said? }
Pages.impound(data, env) -- data: Present.impound(items, t) + { selected }
Pages.journal(data, env) -- data: Present.journal(memories, headline, t)
Every data table may carry `labels = { back, confirm? }`. env: { frame, text, glyph }.
Callback ids: "<page>:<rowId>" for a row (the app's confirm sends the selected one) and "<page>:back".
The interface is documented in the header of init.luau; this file repeats it for the asset browser.