Alchemy

inventory_menu.h

games/tbs/include/inventory_menu.h on GitHub

Structures

InventoryMenuState

struct InventoryMenuState

The item menu's work, in the HEAP_SLOT_MENU work slot: its windows, the party figures, the items listed and the two choices a command makes.

FieldDeclared as
unk000u8 unk000[8]not named by TBS code
selectedOwners32 selectedOwnerthe party member chosen
unk00cu8 unk00c[4]not named by TBS code
mainWindowstruct UiWindow *mainWindow
paneIconsstruct RenderOutput *paneIcons[2]The two panes: the member whose items are shown, and the one an item is given to. @{
paneIndexs8 paneIndex[2]the member chosen, in ownerIds; -1 for none at first
paneCounts8 paneCount[2]members to choose from; 1 at first
itemWindowstruct UiWindow *itemWindow@}
statusWindowstruct UiWindow *statusWindow
helpWindowstruct UiWindow *helpWindow
infoWindowstruct UiWindow *infoWindow
equipWindowstruct UiWindow *equipWindow
listWindowstruct UiWindow *listWindow
unknownWindow38struct UiWindow *unknownWindow38only closed by name in TBS
modalWindowstruct UiWindow *modalWindow
unknownWindow40struct UiWindow *unknownWindow40only closed by name in TBS
gridCursorstruct RenderOutput *gridCursoronly prepared by name in TBS
entryIconsstruct RenderOutput *entryIcons[32]
categoryIconsstruct RenderOutput *categoryIcons[8]
unk0e8u8 unk0e8[0x24]not named by TBS code
messageWindowstruct UiWindow *messageWindow
selectedColumnu8 selectedColumnThe cursor grid: its place and its size, 1 by 1 at first. @{
selectedRowu8 selectedRow
columnCountu8 columnCount
rowCountu8 rowCount
ownerObjectsstruct AnimationObject *ownerObjects[8]@} the party members' figures
ownerXs16 ownerX[8]screen pixels
ownerYs16 ownerY[8]screen pixels
ownerScales32 ownerScale[8]16.16 fixed point, 0x10000 full size
selectedSlotsu16 selectedSlots[2]each pane's inventory slot chosen
selectedItemsu16 selectedItems[2]each pane's inventory entry chosen
cursorstruct RenderOutput *cursor
unk180u8 unk180[0x48]not named by TBS code
itemsu16 items[32]the inventory entries listed
ownerIdsu16 ownerIds[8]the party in order (Party_ListActiveOwners)
itemCountu8 itemCount
partyCountu8 partyCount
paneOwneru8 paneOwner[2]each pane's member
selectedItemIconstruct RenderOutput *selectedItemIcon
flagsu16 flags1 while the item's name and command grid are drawn
completionFlags16 completionFlagset to 1 as item commands end; not read by name
unk224u8 unk224[0x36]not named by TBS code
messageOffsets16 messageOffsetthe item use's result, after MsgItemUseResult
equipPreviews8 equipPreview1 while the stats preview a removal, not an equip
listModeu8 listModethe command chosen last; 0xff for none
unk25eu8 unk25e[2]not named by TBS code
selectedIndexByOwners8 selectedIndexByOwner[8]each member's entry chosen last
modeu8 modenot named through this struct; PsynergyMenuState.mode
unk269u8 unk269[0x129]not named by TBS code
resourceSlotss16 resourceSlots[2]VRAM cache slots of two arrow pictures

Used by BattleEffect_ApplyToTargets, CharacterMenu_UpdateSelectionIcons, EquipmentMenu_StartCompatibilityIndicators, EquipmentMenu_UpdateCompatibilityIndicators, InventoryMenu_ShowModalMessage, ItemMenu_ApplyFlags, ItemMenu_ArrangeCategoryItemIcons, ItemMenu_BuildCommands, ItemMenu_ChooseCommand, ItemMenu_Close, ItemMenu_DrawCategory, ItemMenu_DrawEquipPage, ItemMenu_DrawEquipPreview, ItemMenu_DrawIcons, ItemMenu_DrawItemDetailPage, ItemMenu_DrawItemHead, ItemMenu_DrawMessage, ItemMenu_DrawNamePage, ItemMenu_DrawOwnerStatus, ItemMenu_HideAllIcons, ItemMenu_HidePageIcons, ItemMenu_Initialize, ItemMenu_OpenCategory, ItemMenu_OpenDetail, ItemMenu_PageResult, ItemMenu_PosCategory, ItemMenu_RefreshEntry, ItemMenu_RefreshOwner, ItemMenu_ResetCategory, ItemMenu_Run, ItemMenu_RunList, ItemMenu_RunOwnerSelection, ItemMenu_SelectGiveQuantity, ItemMenu_SelectItem, ItemMenu_SelectMember, ItemMenu_SelectTarget, ItemMenu_SetItemWindowRow3, ItemMenu_SetItemWindowRow5, ItemMenu_SetMessageWindowHeight3, ItemMenu_SetMessageWindowHeight5 and 25 more.

Line 21

Enumerations, without a comment: ItemMenuCommand.

On this page