struct ITEM_MENU_STATE
The item menu's state, RamHeapSlots->menuState (HEAP_SLOT_MENU): its windows, the party figures, the items listed and the two choices a command makes. More…
Declared in menu_internal.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | unused [8] | No view of the menu state names it. |
Sint32 | selectedMember | The party member chosen. |
WINDOW * | moneyWindow | SHOP_STATE's; not named here. |
WINDOW * | mainWindow | |
WINDOW_SPR * | sideIcons [2] | The two sides: the party member whose items are shown, and the one an item is given to. |
Sint8 | sideIndex [2] | The party member chosen, in memberIds. |
Sint8 | sideCount [2] | Party members to choose from. |
Uint8 | unusedAfterSides [4] | No view of the menu state names it. |
WINDOW * | itemWindow | |
WINDOW * | statusWindow | |
WINDOW * | buttonHelpWindow | |
WINDOW * | infoWindow | |
WINDOW * | equipWindow | |
WINDOW * | listWindow | |
WINDOW * | unopenedWindow | Never given a window; only closed. |
WINDOW * | modalWindow | |
WINDOW * | secondUnopenedWindow | Never given a window; only closed. |
WINDOW_SPR * | gridCursor | |
WINDOW_SPR * | entryIcons [MENU_ENTRY_ICONS] | |
Uint8 | unusedAfterIcons [36] | No view of the menu state names it. |
WINDOW * | questionWindow | |
Uint8 | selectedColumn | The cursor grid: its place and its size. |
Uint8 | selectedRow | |
Uint8 | columnCount | |
Uint8 | rowCount | |
void * | memberSprites [8] | The party members' figures. |
Sint16 | memberX [8] | Screen pixels. |
Sint16 | memberY [8] | |
FIXED | memberScale [8] | 16.16 fixed point, toFIXED(1) full size. |
Sint16 | memberSpriteIds [8] | The party member each figure shows, -1 for none (mnCreatePartyFigures). |
Uint16 | selectedSlots [2] | Each side's inventory slot chosen. |
Uint16 | selectedItems [2] | Each side's inventory entry chosen. |
WINDOW_SPR * | cursor | |
Uint8 | unusedBeforeArrows [4] | No view of the menu state names it. |
WINDOW_SPR * | pageArrows [2] | The up and down arrows beside the party row (mnCursorCreate). |
Uint8 | aroundBackdrop [68] | DJINN_MENU_STATE's backdrop pointer at offset 384; no view names the rest. |
Uint16 | items [32] | The inventory entries listed. |
Uint16 | memberIds [8] | The party in order (gmPartyListMembersStub). |
Uint8 | itemCount | |
Uint8 | partyCount | |
Uint8 | sideMember [2] | Each side's party member. |
WINDOW_SPR * | selectedItemIcon | |
Uint16 | flags | 1 while the item's name and command grid stay on screen, so mnItemMenuChooseCommand skips their redraw (Japanese Details sets it). |
Sint16 | completionFlag | 1 skips the hand cursor's next slide once (mnCursorSlide); the item commands and mnItemMenuShowMessage set it. |
void * | figures [4] | The row of four figures the Djinn and status screens and the file list show (mnDjinnFiguresInitTopRow): each one's sprite, place in screen pixels and depth, and its scale in 16.16, which closes a quarter of its gap to toFIXED(1) each tick, or holds -scale while negative. |
Sint16 | figureX [4] | |
Sint16 | figureY [4] | |
FIXED | figureScales [4] | |
Uint16 | figureFacings [4] | |
Uint8 | unusedAfterFigures [6] | DJINN_MENU_STATE's pair; not named here. |
Sint16 | msgOffset | The item use's result, after MsgItemUseResult. |
Sint8 | equipPreview | 1 while the stats preview a removal, not an equip. |
Sint8 | listMode | The command chosen last; -1 for none. |
Uint8 | unusedAfterListMode [2] | No view of the menu state names it. |
Sint8 | selectedIndexByMember [8] | Each party member's entry chosen last. |
Uint8 | mode | PSYNERGY_MENU_STATE's; not named here. |
Uint8 | unusedAfterMode [3] | No view of the menu state names it. |
Uint8 | shopStock [638] | SHOP_STATE's stock and party; not named here. |
Uint16 | resourceSlots [2] | VRAM cache slots of the two arrow pictures (mnLoadDjinnArrows). |
Uint8 | shopKeeper [23] | SHOP_STATE's cursor and keeper; not named here. |
Sint8 | memberSpritesShown | Nonzero while mnUpdatePartyFigures places the party figures (memberSprites); the shops clear it while a details window covers them. |
Sint8 | figuresShown | Nonzero while the row of four figures is drawn (mnDjinnFiguresSetShown). |
Uint8 | shopEffects [1729] | SHOP_STATE's particles; not named here. |
ICON_SPR | menuIcons [5] | The five menu icons (mnIconLoadSlots): a sprite and a VRAM cache slot each, queued while menuIconsShown is nonzero. |
Uint16 | menuIconSlots [5] | |
Sint8 | menuIconsShown |
Description
The item menu's state, RamHeapSlots->menuState (HEAP_SLOT_MENU): its windows,
the party figures, the items listed and the two choices a command makes. The
Broken Seal's ITEM_MENU_STATE, whose names its members take: from itemWindow
to the entry icons it lies 4 bytes further on than The Broken Seal's, and
from questionWindow on 28 bytes closer, with the figures' ids after their
scales. The status, Psynergy and Djinn screens read the members they share
with it through it too.
struct ITEM_MENU_STATE
Referenced by mnAbilityApplyToTargets(), mnCreatePairFigures(), mnCreatePartyFigures(), mnCursorCreate(), mnCursorPos(), mnDjinnFiguresInitTopRow(), mnDjinnFiguresReleaseTopRow(), mnDjinnFiguresReplaceSlot(), mnDjinnFiguresSetShown(), mnDjinnFiguresSetSlotFacing(), mnDjinnFiguresSetSlotPhase(), mnDjinnFiguresSetSlotPos(), mnDjinnFiguresUpdateTopRow(), mnDjinnMenuBuildLists(), mnEquipmentMenuStopCompatibilityIndicators(), mnEquipmentMenuUpdateCompatibilityIndicators(), mnFreeArrows(), mnHideEmptyEntryIcons(), mnHideEntryIcons(), mnIconCreateDjinnArrow(), mnIconCreateStatChangeArrow(), mnIconLoadSlots(), mnIconPushSlots(), mnIconReleaseSlots(), mnIconSetActive(), mnIconSetSlot(), mnInitState(), mnItemMenuArrangeCategoryItemIcons(), mnItemMenuBuildCommands(), mnItemMenuBuildPagedList(), mnItemMenuChooseCommand(), mnItemMenuClose(), mnItemMenuConfirmEquip(), mnItemMenuDrawEquipment(), mnItemMenuDrawEquipPreview(), mnItemMenuDrawIcons(), mnItemMenuDrawItemHead(), mnItemMenuDrawListPage(), mnItemMenuDrawMessage(), mnItemMenuHideAllIcons(), mnItemMenuHideTradedIcons(), mnItemMenuInit(), mnItemMenuOpenDetail(), mnItemMenuPlaceIcons(), mnItemMenuRefreshMember(), mnItemMenuRun(), mnItemMenuRunCommands(), mnItemMenuRunList(), mnItemMenuRunMemberSelection(), mnItemMenuSelectGiveQuantity() and 28 more.
Definition at line 210 of file menu_internal.h.
Fields in detail
unused
Uint8 unused[8]
No view of the menu state names it.
selectedMember
Sint32 selectedMember
The party member chosen.
moneyWindow
WINDOW *moneyWindow
SHOP_STATE's; not named here.
mainWindow
WINDOW *mainWindow
sideIcons
WINDOW_SPR *sideIcons[2]
The two sides: the party member whose items are shown, and the one an item is given to.
sideIndex
Sint8 sideIndex[2]
The party member chosen, in memberIds.
sideCount
Sint8 sideCount[2]
Party members to choose from.
unusedAfterSides
Uint8 unusedAfterSides[4]
No view of the menu state names it.
itemWindow
WINDOW *itemWindow
statusWindow
WINDOW *statusWindow
buttonHelpWindow
WINDOW *buttonHelpWindow
infoWindow
WINDOW *infoWindow
equipWindow
WINDOW *equipWindow
listWindow
WINDOW *listWindow
unopenedWindow
WINDOW *unopenedWindow
Never given a window; only closed.
modalWindow
WINDOW *modalWindow
secondUnopenedWindow
WINDOW *secondUnopenedWindow
Never given a window; only closed.
gridCursor
WINDOW_SPR *gridCursor
entryIcons
WINDOW_SPR *entryIcons[MENU_ENTRY_ICONS]
unusedAfterIcons
Uint8 unusedAfterIcons[36]
No view of the menu state names it.
questionWindow
WINDOW *questionWindow
selectedColumn
Uint8 selectedColumn
The cursor grid: its place and its size.
selectedRow
Uint8 selectedRow
columnCount
Uint8 columnCount
rowCount
Uint8 rowCount
memberSprites
void *memberSprites[8]
The party members' figures.
memberX
Sint16 memberX[8]
Screen pixels.
memberY
Sint16 memberY[8]
memberScale
FIXED memberScale[8]
16.16 fixed point, toFIXED(1) full
size.
memberSpriteIds
Sint16 memberSpriteIds[8]
The party member each figure shows, -1
for none (mnCreatePartyFigures).
selectedSlots
Uint16 selectedSlots[2]
Each side's inventory slot chosen.
selectedItems
Uint16 selectedItems[2]
Each side's inventory entry chosen.
cursor
WINDOW_SPR *cursor
unusedBeforeArrows
Uint8 unusedBeforeArrows[4]
No view of the menu state names it.
pageArrows
WINDOW_SPR *pageArrows[2]
The up and down arrows beside the
party row (mnCursorCreate).
aroundBackdrop
Uint8 aroundBackdrop[68]
DJINN_MENU_STATE's backdrop pointer at
offset 384; no view names the rest.
items
Uint16 items[32]
The inventory entries listed.
memberIds
Uint16 memberIds[8]
The party in order (gmPartyListMembersStub).
itemCount
Uint8 itemCount
partyCount
Uint8 partyCount
sideMember
Uint8 sideMember[2]
Each side's party member.
selectedItemIcon
WINDOW_SPR *selectedItemIcon
flags
Uint16 flags
1 while the item's name and command grid stay
on screen, so mnItemMenuChooseCommand skips
their redraw (Japanese Details sets it).
completionFlag
Sint16 completionFlag
1 skips the hand cursor's next slide once
(mnCursorSlide); the item commands and
mnItemMenuShowMessage set it.
figures
void *figures[4]
The row of four figures the Djinn and status screens and the file list
show (mnDjinnFiguresInitTopRow): each one's sprite, place in screen
pixels and depth, and its scale in 16.16, which closes a quarter of its
gap to toFIXED(1) each tick, or holds -scale while negative.
figureX
Sint16 figureX[4]
figureY
Sint16 figureY[4]
figureScales
FIXED figureScales[4]
figureFacings
Uint16 figureFacings[4]
unusedAfterFigures
Uint8 unusedAfterFigures[6]
DJINN_MENU_STATE's pair; not named
here.
msgOffset
Sint16 msgOffset
The item use's result, after
MsgItemUseResult.
equipPreview
Sint8 equipPreview
1 while the stats preview a removal, not an equip.
listMode
Sint8 listMode
The command chosen last; -1 for none.
unusedAfterListMode
Uint8 unusedAfterListMode[2]
No view of the menu state names it.
selectedIndexByMember
Sint8 selectedIndexByMember[8]
Each party member's entry chosen last.
mode
Uint8 mode
PSYNERGY_MENU_STATE's; not named
here.
unusedAfterMode
Uint8 unusedAfterMode[3]
No view of the menu state names it.
shopStock
Uint8 shopStock[638]
SHOP_STATE's stock and party; not
named here.
resourceSlots
Uint16 resourceSlots[2]
VRAM cache slots of the two arrow
pictures (mnLoadDjinnArrows).
shopKeeper
Uint8 shopKeeper[23]
SHOP_STATE's cursor and keeper; not
named here.
memberSpritesShown
Sint8 memberSpritesShown
Nonzero while mnUpdatePartyFigures
places the party figures
(memberSprites); the shops clear it
while a details window covers them.
figuresShown
Sint8 figuresShown
Nonzero while the row of four
figures is drawn
(mnDjinnFiguresSetShown).
shopEffects
Uint8 shopEffects[1729]
SHOP_STATE's particles; not named
here.
menuIcons
ICON_SPR menuIcons[5]
The five menu icons (mnIconLoadSlots): a sprite and a VRAM cache slot
each, queued while menuIconsShown is nonzero.
menuIconSlots
Uint16 menuIconSlots[5]
menuIconsShown
Sint8 menuIconsShown