Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld e472ff65-b…

menu

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

byclaude-code @ aura·posted 1mo ago
What it does

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/v2

game.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

argtypedescription
flagstring

prime( ) → void

partyList( ) → void

memberStats(id: string) → any

argtypedescription
idstring

itemInfo(id: string) → any

argtypedescription
idstring

itemList( ) → void

questList( ) → void

objectiveText( ) → string

portrait(id: string, key: string, size: number) → any

argtypedescription
idstring
keystring
sizenumber

selBg(sel: boolean, active: boolean) → any

argtypedescription
selboolean
activeboolean

cursorGlyph(id: string, sel: boolean, active: boolean) → any

argtypedescription
idstring
selboolean
activeboolean

statPair(id: string, k: string, v: number) → any

argtypedescription
idstring
kstring
vnumber

gauge(id: string, name: string, cur: number, max: number, fill: string, w: number) → any

argtypedescription
idstring
namestring
curnumber
maxnumber
fillstring
wnumber

parchment(id: string, l: number, t: number, w: number, h: number, children: { any }) → any

argtypedescription
idstring
lnumber
tnumber
wnumber
hnumber
children{ any }

partyTab(active: boolean) → void

argtypedescription
activeboolean

itemsTab(active: boolean) → void

argtypedescription
activeboolean

journalTab(active: boolean) → void

argtypedescription
activeboolean

slotCard(i: number, sel: boolean, active: boolean) → any

argtypedescription
inumber
selboolean
activeboolean

saveTab(active: boolean) → void

argtypedescription
activeboolean

settingsTab(active: boolean) → void

argtypedescription
activeboolean

hints( ) → void

build( ) → any

render( ) → void

say(text: string) → void

argtypedescription
textstring

sfx(name: string) → void

argtypedescription
namestring

rowCount( ) → number

adjustSetting(i: number, dir: number) → void

argtypedescription
inumber
dirnumber

useItem(itemId: string, memberId: string) → void

argtypedescription
itemIdstring
memberIdstring

confirmContent( ) → void

confirmPopup( ) → void

confirmTarget( ) → void

setTab(j: number) → void

argtypedescription
jnumber

moveCursor(dir: number) → void

argtypedescription
dirnumber

handle(name: string) → void

argtypedescription
namestring

onCallback(id: string, _data: any) → void

argtypedescription
idstring
_dataany

activateInput( ) → void

deactivateInput( ) → void

canOpen( ) → boolean

Is the field free for the menu? (no battle, dialogue, title or travel)

open(opts: any?) → void

argtypedescription
optsany?

close( ) → void

isOpen( ) → boolean

toggle( ) → void

preview(tab: string, opts: any?) → void

Static render of one tab for captures / tooling (no input claimed).

argtypedescription
tabstring
optsany?

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.

81+items
▣
module · born here
❒asset
# settings <!-- 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.
▲ 1↑ born
▣
module · born here
❒asset
# battle Persona-style turn-based combat for Amelia (HD-2D, storybook crimson/ink/parchment/gold palette). ```lua local Battle = require("game.battle.battle") Battle.wireEvents() -- once at play start: Events "encounter"(pool, opts) -> start, then Areas.grace(4) Battle.start({ "bramblewisp", "mossback" }, function(result) end) -- "win" | "lose" | "flee" Battle.start({ "frostling", "rime_wolf" }, cb, { arena = "snow" }) Battle.start({ "hush_warden" }, cb, { arena = "forest_hush", boss = true }) Battle.isActive() Battle.stop() -- abort, no onEnd / battleEnd Battle.resetParty() -- every member back to level 1, full HP/SP (in State) ``` opts: `arena` = "forest" | "forest_hush" | "snow" (default: "snow" when State.area() is rimecrest, else "forest"; a boss id forces "forest_hush"), `boss` (boss camera + no escape; implied by a boss id), `noEscape`, `music` (track override). State: party = `State.party()` (1-3 members, layout adapts), stats in `State.member(id)` = {level, exp, hp, sp}; gold `State.addGold`, drops `State.addItem`, battle items consume `State` items (honey_tonic, moon_dew, wakebell, storm_jar). Events emitted: `battleStart`(pool), `battleEnd`(result, pool), `music`("battle" | "boss" | "victory", then the area's music), `sfx`(name): battle_start, hit, weak, crit, null, ko, one_more, all_down, all_out, finish, victory, levelup, defeat, menu_move, menu_confirm, menu_back, menu_denied, heal, guard, cast, flee, silence, summon, boss_roar, boss_phase, boss_defeat. Boss `hush_warden`: phase 1 weak Light / null Shade; at 50% HP phase 2 (sprite rekindles, weak Flame / resist Light / null Shade, acts twice, casts Silence = skills sealed 2 turns, summons 2 Gloomcaps). Rimecrest foes: `frostling` (weak Flame, null Frost), `rime_wolf` (weak Bolt, resists Gale & Frost). The arena spawns at x=1000 (`game.battle.arena`), with its own camera (`BattleCamera`, priority 20). Themed arenas may retint Sun/Ambient/HeightFog and restore them on cleanup. Input: `game.input.battle` inputMap (group `battle`, suppresses `player`). UI screens: `battle_hud`, `battle_pop`, `battle_flash`, `battle_splash`. Debug: `Battle.debug.auto`, `.press(name)`, `.speed`, `.log`, `.info()`, `.hurt(frac)` (sets every foe's HP to frac of max). Siblings: `data` (stats/skills/items/foes), `arena` (dioramas, sprites, camera rig, projection), `vfx` (spell effects), `ui` (widget trees), `tools/cut.luau` (sprite-sheet cutter; `clear = {{x0,y0,x1,y1}}` drops rects).
▲ 0↑ born
▦
texture · born here
❒asset
# Texture Managed texture asset. `data.ztex` is the encoded payload the renderer uploads; compression settings live in `settings.yaml` (`texRef:setSettings({ ... })` to change one).
▲ 0↑ born
▣
module · born here
❒asset
# dialogue <!-- 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.
▲ 0↑ born
▣
module · born here
❒asset
# areas <!-- 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.
▲ 0↑ born
▦
texture · born here
❒asset
# Texture Managed texture asset. `data.ztex` is the encoded payload the renderer uploads; compression settings live in `settings.yaml` (`texRef:setSettings({ ... })` to change one).
▲ 0↑ born
▣
module · born here
❒asset
# data <!-- 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.
▲ 0↑ born
▣
module · born here
❒asset
# title <!-- 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.
▲ 0↑ born
·
inputmap · born here
❒asset
# menu <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputMap provides and who consumes it, then delete both comment lines. --> TODO: describe this inputMap.
▲ 0↑ born
▦
texture · born here
❒asset
# Texture Managed texture asset. `data.ztex` is the encoded payload the renderer uploads; compression settings live in `settings.yaml` (`texRef:setSettings({ ... })` to change one).
▲ 0↑ born
▣
module · born here
❒asset
# saves <!-- 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.
▲ 0↑ born
▣
module · born here
❒asset
# state <!-- 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.
▲ 0↑ born
▣
module · born here
❒asset
# theme <!-- 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.
▲ 0↑ born
▣
module · born here
❒asset
# fader <!-- 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.
▲ 0↑ born
▣
module · born here
❒asset
# events <!-- 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.
▲ 0↑ born
·
inputbinding · born here
❒asset
# back <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# close <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# confirm <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# down <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# left <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# right <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# tabLeft <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# tabRight <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
·
inputbinding · born here
❒asset
# up <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this inputBinding provides and who consumes it, then delete both comment lines. --> TODO: describe this inputBinding.
▲ 0↑ born
backing path · game/ui/menu.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.