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.
| Field | Declared as | |
|---|---|---|
unk000 | u8 unk000[8] | not named by TBS code |
selectedOwner | s32 selectedOwner | the party member chosen |
unk00c | u8 unk00c[4] | not named by TBS code |
mainWindow | struct UiWindow *mainWindow | |
paneIcons | struct RenderOutput *paneIcons[2] | The two panes: the member whose items are shown, and the one an item is given to. @{ |
paneIndex | s8 paneIndex[2] | the member chosen, in ownerIds; -1 for none at first |
paneCount | s8 paneCount[2] | members to choose from; 1 at first |
itemWindow | struct UiWindow *itemWindow | @} |
statusWindow | struct UiWindow *statusWindow | |
helpWindow | struct UiWindow *helpWindow | |
infoWindow | struct UiWindow *infoWindow | |
equipWindow | struct UiWindow *equipWindow | |
listWindow | struct UiWindow *listWindow | |
unknownWindow38 | struct UiWindow *unknownWindow38 | only closed by name in TBS |
modalWindow | struct UiWindow *modalWindow | |
unknownWindow40 | struct UiWindow *unknownWindow40 | only closed by name in TBS |
gridCursor | struct RenderOutput *gridCursor | only prepared by name in TBS |
entryIcons | struct RenderOutput *entryIcons[32] | |
categoryIcons | struct RenderOutput *categoryIcons[8] | |
unk0e8 | u8 unk0e8[0x24] | not named by TBS code |
messageWindow | struct UiWindow *messageWindow | |
selectedColumn | u8 selectedColumn | The cursor grid: its place and its size, 1 by 1 at first. @{ |
selectedRow | u8 selectedRow | |
columnCount | u8 columnCount | |
rowCount | u8 rowCount | |
ownerObjects | struct AnimationObject *ownerObjects[8] | @} the party members' figures |
ownerX | s16 ownerX[8] | screen pixels |
ownerY | s16 ownerY[8] | screen pixels |
ownerScale | s32 ownerScale[8] | 16.16 fixed point, 0x10000 full size |
selectedSlots | u16 selectedSlots[2] | each pane's inventory slot chosen |
selectedItems | u16 selectedItems[2] | each pane's inventory entry chosen |
cursor | struct RenderOutput *cursor | |
unk180 | u8 unk180[0x48] | not named by TBS code |
items | u16 items[32] | the inventory entries listed |
ownerIds | u16 ownerIds[8] | the party in order (Party_ListActiveOwners) |
itemCount | u8 itemCount | |
partyCount | u8 partyCount | |
paneOwner | u8 paneOwner[2] | each pane's member |
selectedItemIcon | struct RenderOutput *selectedItemIcon | |
flags | u16 flags | 1 while the item's name and command grid are drawn |
completionFlag | s16 completionFlag | set to 1 as item commands end; not read by name |
unk224 | u8 unk224[0x36] | not named by TBS code |
messageOffset | s16 messageOffset | the item use's result, after MsgItemUseResult |
equipPreview | s8 equipPreview | 1 while the stats preview a removal, not an equip |
listMode | u8 listMode | the command chosen last; 0xff for none |
unk25e | u8 unk25e[2] | not named by TBS code |
selectedIndexByOwner | s8 selectedIndexByOwner[8] | each member's entry chosen last |
mode | u8 mode | not named through this struct; PsynergyMenuState.mode |
unk269 | u8 unk269[0x129] | not named by TBS code |
resourceSlots | s16 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.
Enumerations, without a comment: ItemMenuCommand.