menu
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
menu
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.ui.menu — the pause / main menu: Party, Items, Journal, Save & Load, Settings. Octopath-flavoured storybook styling (game.ui.theme): ink-plum panels, gold filigree corners, parchment pages for item details and the journal. local Menu = require("game.ui.menu") Menu.open() -- opens on Party Menu.open({ tab = "settings", only = true, onClose = fn }) -- settings alone (title screen) Menu.close() Menu.isOpen() Menu.toggle() Menu.canOpen() Input: activates game.input.menu (group "ui", suppresses "player") while open; mouse / touch clicks on every row, tab and arrow work too. Events: "menuOpen"("main") / "menuClose"("main"); "sfx"(name) on moves; settings changes emit "settingsChanged" via game.ui.settings; saves emit "gameSaved"/"gameLoaded" via game.ui.saves.
data( ) → any
story( ) → any
has(flag: string) → boolean
| arg | type | description |
|---|---|---|
| flag | string |
prime( ) → void
partyList( ) → void
memberStats(id: string) → any
| arg | type | description |
|---|---|---|
| id | string |
itemInfo(id: string) → any
| arg | type | description |
|---|---|---|
| id | string |
itemList( ) → void
questList( ) → void
objectiveText( ) → string
portrait(id: string, key: string, size: number) → any
| arg | type | description |
|---|---|---|
| id | string | |
| key | string | |
| size | number |
selBg(sel: boolean, active: boolean) → any
| arg | type | description |
|---|---|---|
| sel | boolean | |
| active | boolean |
cursorGlyph(id: string, sel: boolean, active: boolean) → any
| arg | type | description |
|---|---|---|
| id | string | |
| sel | boolean | |
| active | boolean |
statPair(id: string, k: string, v: number) → any
| arg | type | description |
|---|---|---|
| id | string | |
| k | string | |
| v | number |
gauge(id: string, name: string, cur: number, max: number, fill: string, w: number) → any
| arg | type | description |
|---|---|---|
| id | string | |
| name | string | |
| cur | number | |
| max | number | |
| fill | string | |
| w | number |
parchment(id: string, l: number, t: number, w: number, h: number, children: { any }) → any
| arg | type | description |
|---|---|---|
| id | string | |
| l | number | |
| t | number | |
| w | number | |
| h | number | |
| children | { any } |
partyTab(active: boolean) → void
| arg | type | description |
|---|---|---|
| active | boolean |
itemsTab(active: boolean) → void
| arg | type | description |
|---|---|---|
| active | boolean |
journalTab(active: boolean) → void
| arg | type | description |
|---|---|---|
| active | boolean |
slotCard(i: number, sel: boolean, active: boolean) → any
| arg | type | description |
|---|---|---|
| i | number | |
| sel | boolean | |
| active | boolean |
saveTab(active: boolean) → void
| arg | type | description |
|---|---|---|
| active | boolean |
settingsTab(active: boolean) → void
| arg | type | description |
|---|---|---|
| active | boolean |
hints( ) → void
build( ) → any
render( ) → void
say(text: string) → void
| arg | type | description |
|---|---|---|
| text | string |
sfx(name: string) → void
| arg | type | description |
|---|---|---|
| name | string |
rowCount( ) → number
adjustSetting(i: number, dir: number) → void
| arg | type | description |
|---|---|---|
| i | number | |
| dir | number |
useItem(itemId: string, memberId: string) → void
| arg | type | description |
|---|---|---|
| itemId | string | |
| memberId | string |
confirmContent( ) → void
confirmPopup( ) → void
confirmTarget( ) → void
setTab(j: number) → void
| arg | type | description |
|---|---|---|
| j | number |
moveCursor(dir: number) → void
| arg | type | description |
|---|---|---|
| dir | number |
handle(name: string) → void
| arg | type | description |
|---|---|---|
| name | string |
onCallback(id: string, _data: any) → void
| arg | type | description |
|---|---|---|
| id | string | |
| _data | any |
activateInput( ) → void
deactivateInput( ) → void
canOpen( ) → boolean
Is the field free for the menu? (no battle, dialogue, title or travel)
open(opts: any?) → void
| arg | type | description |
|---|---|---|
| opts | any? |
close( ) → void
isOpen( ) → boolean
toggle( ) → void
preview(tab: string, opts: any?) → void
Static render of one tab for captures / tooling (no input claimed).
| arg | type | description |
|---|---|---|
| tab | string | |
| opts | any? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.