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. More...
#include <inventory_menu.h>
Data Fields | |
| u8 | unk000 [8] |
| not named by TBS code | |
| s32 | selectedOwner |
| the party member chosen | |
| u8 | unk00c [4] |
| not named by TBS code | |
| struct UiWindow * | mainWindow |
| struct UiWindow * | itemWindow |
| struct UiWindow * | statusWindow |
| struct UiWindow * | helpWindow |
| struct UiWindow * | infoWindow |
| struct UiWindow * | equipWindow |
| struct UiWindow * | listWindow |
| struct UiWindow * | unknownWindow38 |
| only closed by name in TBS | |
| struct UiWindow * | modalWindow |
| struct UiWindow * | unknownWindow40 |
| only closed by name in TBS | |
| struct RenderOutput * | gridCursor |
| only prepared by name in TBS | |
| struct RenderOutput * | entryIcons [32] |
| struct RenderOutput * | categoryIcons [8] |
| u8 | unk0e8 [0x24] |
| not named by TBS code | |
| struct UiWindow * | messageWindow |
| struct AnimationObject * | ownerObjects [8] |
| the party members' figures | |
| s16 | ownerX [8] |
| screen pixels | |
| s16 | ownerY [8] |
| screen pixels | |
| s32 | ownerScale [8] |
| 16.16 fixed point, 0x10000 full size | |
| u16 | selectedSlots [2] |
| each pane's inventory slot chosen | |
| u16 | selectedItems [2] |
| each pane's inventory entry chosen | |
| struct RenderOutput * | cursor |
| u8 | unk180 [0x48] |
| not named by TBS code | |
| u16 | items [32] |
| the inventory entries listed | |
| u16 | ownerIds [8] |
| the party in order (Party_ListActiveOwners) | |
| u8 | itemCount |
| u8 | partyCount |
| u8 | paneOwner [2] |
| each pane's member | |
| struct RenderOutput * | selectedItemIcon |
| u16 | flags |
| 1 while the item's name and command grid are drawn | |
| s16 | completionFlag |
| set to 1 as item commands end; not read by name | |
| u8 | unk224 [0x36] |
| not named by TBS code | |
| s16 | messageOffset |
| the item use's result, after MsgItemUseResult | |
| s8 | equipPreview |
| 1 while the stats preview a removal, not an equip | |
| u8 | listMode |
| the command chosen last; 0xff for none | |
| u8 | unk25e [2] |
| not named by TBS code | |
| s8 | selectedIndexByOwner [8] |
| each member's entry chosen last | |
| u8 | mode |
| not named through this struct; PsynergyMenuState.mode | |
| u8 | unk269 [0x129] |
| not named by TBS code | |
| s16 | resourceSlots [2] |
| VRAM cache slots of two arrow pictures. | |
| struct RenderOutput * | paneIcons [2] |
| The two panes: the member whose items are shown, and the one an item is given to. | |
| s8 | paneIndex [2] |
| the member chosen, in ownerIds; -1 for none at first | |
| s8 | paneCount [2] |
| members to choose from; 1 at first | |
| u8 | selectedColumn |
| The cursor grid: its place and its size, 1 by 1 at first. | |
| u8 | selectedRow |
| u8 | columnCount |
| u8 | rowCount |
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.
Definition at line 21 of file inventory_menu.h.
| u8 InventoryMenuState::unk000[8] |
not named by TBS code
Definition at line 22 of file inventory_menu.h.
| s32 InventoryMenuState::selectedOwner |
the party member chosen
Definition at line 23 of file inventory_menu.h.
Referenced by CharacterMenu_SetSelectedOwnerRow(), ItemMenu_RunList(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectItem(), and ItemMenu_SelectTarget().
| u8 InventoryMenuState::unk00c[4] |
not named by TBS code
Definition at line 24 of file inventory_menu.h.
| struct UiWindow* InventoryMenuState::mainWindow |
Definition at line 25 of file inventory_menu.h.
Referenced by ItemMenu_Close(), ItemMenu_SelectTarget(), and Menu_SelectQuantity().
| struct RenderOutput* InventoryMenuState::paneIcons[2] |
The two panes: the member whose items are shown, and the one an item is given to.
Definition at line 29 of file inventory_menu.h.
Referenced by InventoryMenu_ShowModalMessage(), ItemMenu_RunCommands(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), and ItemMenu_SelectTarget().
| s8 InventoryMenuState::paneIndex[2] |
the member chosen, in ownerIds; -1 for none at first
Definition at line 30 of file inventory_menu.h.
Referenced by ItemMenu_RunList(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), ItemMenu_SelectTarget(), and UiWindow_InitializeWork().
| s8 InventoryMenuState::paneCount[2] |
members to choose from; 1 at first
Definition at line 31 of file inventory_menu.h.
Referenced by ItemMenu_RunOwnerSelection(), ItemMenu_SelectMember(), and UiWindow_InitializeWork().
| struct UiWindow* InventoryMenuState::itemWindow |
Definition at line 33 of file inventory_menu.h.
Referenced by ItemMenu_Close(), ItemMenu_DrawItemDetailPage(), ItemMenu_DrawNamePage(), ItemMenu_Initialize(), ItemMenu_OpenCategory(), ItemMenu_RefreshOwner(), ItemMenu_RunOwnerSelection(), and ItemMenu_SelectTarget().
| struct UiWindow* InventoryMenuState::statusWindow |
Definition at line 34 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), ItemMenu_Close(), ItemMenu_DrawEquipPreview(), ItemMenu_Initialize(), ItemMenu_Run(), ItemMenu_RunCommands(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectItem(), and ItemMenu_SelectTarget().
| struct UiWindow* InventoryMenuState::helpWindow |
Definition at line 35 of file inventory_menu.h.
Referenced by ItemMenu_Close(), ItemMenu_Initialize(), and ItemMenu_RunOwnerSelection().
| struct UiWindow* InventoryMenuState::infoWindow |
Definition at line 36 of file inventory_menu.h.
Referenced by InventoryMenu_ShowModalMessage(), ItemMenu_ChooseCommand(), ItemMenu_Close(), ItemMenu_DrawEquipPage(), ItemMenu_DrawItemDetailPage(), ItemMenu_Initialize(), ItemMenu_RunCommands(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), ItemMenu_SelectTarget(), ItemMenu_TryBreak(), and ItemMenu_Use().
| struct UiWindow* InventoryMenuState::equipWindow |
Definition at line 37 of file inventory_menu.h.
Referenced by ItemMenu_Close(), ItemMenu_DrawEquipPage(), ItemMenu_OpenDetail(), and ItemMenu_SelectItem().
| struct UiWindow* InventoryMenuState::listWindow |
Definition at line 38 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), ItemMenu_Close(), ItemMenu_RunCommands(), and ItemMenu_RunList().
| struct UiWindow* InventoryMenuState::unknownWindow38 |
only closed by name in TBS
Definition at line 39 of file inventory_menu.h.
Referenced by ItemMenu_Close().
| struct UiWindow* InventoryMenuState::modalWindow |
Definition at line 40 of file inventory_menu.h.
Referenced by InventoryMenu_ShowModalMessage(), and ItemMenu_Close().
| struct UiWindow* InventoryMenuState::unknownWindow40 |
only closed by name in TBS
Definition at line 41 of file inventory_menu.h.
Referenced by ItemMenu_Close().
| struct RenderOutput* InventoryMenuState::gridCursor |
only prepared by name in TBS
Definition at line 42 of file inventory_menu.h.
Referenced by ItemMenu_RunList().
| struct RenderOutput* InventoryMenuState::entryIcons[32] |
Definition at line 43 of file inventory_menu.h.
Referenced by ItemMenu_ArrangeCategoryItemIcons(), ItemMenu_DrawIcons(), ItemMenu_HideAllIcons(), ItemMenu_HidePageIcons(), ItemMenu_PosCategory(), ItemMenu_RefreshEntry(), ItemMenu_RunList(), ItemMenu_SelectItem(), Menu_HideEmptyEntryIcons(), Menu_PlaceEntryObjectsInGrid(), Menu_SetPageIcons(), and Menu_SpawnIconEntries().
| struct RenderOutput* InventoryMenuState::categoryIcons[8] |
Definition at line 44 of file inventory_menu.h.
Referenced by CharacterMenu_UpdateSelectionIcons(), ItemMenu_ApplyFlags(), ItemMenu_ResetCategory(), and Menu_CreateEightEntryObjects().
| u8 InventoryMenuState::unk0e8[0x24] |
not named by TBS code
Definition at line 45 of file inventory_menu.h.
| struct UiWindow* InventoryMenuState::messageWindow |
Definition at line 46 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), ItemMenu_Close(), ItemMenu_ConfirmEquip(), ItemMenu_DrawItemHead(), ItemMenu_DrawMessage(), ItemMenu_Run(), ItemMenu_RunCommands(), ItemMenu_SelectGiveQuantity(), and ItemMenu_SelectItem().
| u8 InventoryMenuState::selectedColumn |
The cursor grid: its place and its size, 1 by 1 at first.
Definition at line 49 of file inventory_menu.h.
Referenced by ItemMenu_Initialize().
| u8 InventoryMenuState::selectedRow |
Definition at line 50 of file inventory_menu.h.
Referenced by ItemMenu_Initialize().
| u8 InventoryMenuState::columnCount |
Definition at line 51 of file inventory_menu.h.
Referenced by ItemMenu_Initialize(), and UiWindow_InitializeWork().
| u8 InventoryMenuState::rowCount |
Definition at line 52 of file inventory_menu.h.
Referenced by ItemMenu_Initialize(), and UiWindow_InitializeWork().
| struct AnimationObject* InventoryMenuState::ownerObjects[8] |
the party members' figures
Definition at line 54 of file inventory_menu.h.
Referenced by EquipmentMenu_StartCompatibilityIndicators(), EquipmentMenu_UpdateCompatibilityIndicators(), ItemMenu_RunList(), and Menu_StartPartyFiguresWalking().
| s16 InventoryMenuState::ownerX[8] |
screen pixels
Definition at line 55 of file inventory_menu.h.
| s16 InventoryMenuState::ownerY[8] |
screen pixels
Definition at line 56 of file inventory_menu.h.
Referenced by ItemMenu_Initialize(), ItemMenu_RunList(), and ItemMenu_RunOwnerSelection().
| s32 InventoryMenuState::ownerScale[8] |
16.16 fixed point, 0x10000 full size
Definition at line 57 of file inventory_menu.h.
| u16 InventoryMenuState::selectedSlots[2] |
each pane's inventory slot chosen
Definition at line 58 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), ItemMenu_ConfirmEquip(), ItemMenu_Run(), ItemMenu_RunCommands(), ItemMenu_RunList(), ItemMenu_SelectTarget(), ItemMenu_TryBreak(), and ItemMenu_Use().
| u16 InventoryMenuState::selectedItems[2] |
each pane's inventory entry chosen
Definition at line 59 of file inventory_menu.h.
Referenced by EquipmentMenu_UpdateCompatibilityIndicators(), ItemMenu_BuildCommands(), ItemMenu_ChooseCommand(), ItemMenu_DrawItemHead(), ItemMenu_OpenDetail(), ItemMenu_RunCommands(), ItemMenu_RunList(), ItemMenu_SelectGiveQuantity(), ItemMenu_SelectTarget(), ItemMenu_TryBreak(), and ItemMenu_Use().
| struct RenderOutput* InventoryMenuState::cursor |
Definition at line 60 of file inventory_menu.h.
Referenced by ItemMenu_Close(), ItemMenu_DrawOwnerStatus(), and Menu_SelectQuantity().
| u8 InventoryMenuState::unk180[0x48] |
not named by TBS code
Definition at line 61 of file inventory_menu.h.
| u16 InventoryMenuState::items[32] |
the inventory entries listed
Definition at line 62 of file inventory_menu.h.
Referenced by Item_Use(), ItemMenu_DrawCategory(), ItemMenu_DrawEquipPage(), ItemMenu_DrawEquippedItemNames(), ItemMenu_DrawItemDetailPage(), ItemMenu_DrawNamePage(), ItemMenu_RefreshOwner(), ItemMenu_RunCommands(), ItemMenu_RunList(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), Menu_HideEmptyEntryIcons(), and Shop_DrawItemPage().
| u16 InventoryMenuState::ownerIds[8] |
the party in order (Party_ListActiveOwners)
Definition at line 63 of file inventory_menu.h.
Referenced by BattleEffect_ApplyToTargets(), EquipmentMenu_UpdateCompatibilityIndicators(), ItemMenu_Run(), ItemMenu_RunList(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), and ItemMenu_SelectTarget().
| u8 InventoryMenuState::itemCount |
Definition at line 64 of file inventory_menu.h.
Referenced by Item_Use(), ItemMenu_PageResult(), ItemMenu_RefreshOwner(), ItemMenu_RunCommands(), ItemMenu_RunList(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), Menu_BuildPageResult(), Menu_SetPageIcons(), and Shop_DrawItemPage().
| u8 InventoryMenuState::partyCount |
Definition at line 65 of file inventory_menu.h.
Referenced by BattleEffect_ApplyToTargets(), EquipmentMenu_StartCompatibilityIndicators(), EquipmentMenu_UpdateCompatibilityIndicators(), ItemMenu_BuildCommands(), ItemMenu_Run(), ItemMenu_RunList(), ItemMenu_SelectItem(), ItemMenu_SelectMember(), ItemMenu_SelectTarget(), and Menu_StartPartyFiguresWalking().
| u8 InventoryMenuState::paneOwner[2] |
each pane's member
Definition at line 66 of file inventory_menu.h.
Referenced by ItemMenu_BuildCommands(), ItemMenu_ChooseCommand(), ItemMenu_ConfirmEquip(), ItemMenu_DrawItemHead(), ItemMenu_PageResult(), ItemMenu_RunCommands(), ItemMenu_RunList(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectGiveQuantity(), ItemMenu_SelectItem(), ItemMenu_SelectTarget(), ItemMenu_TryBreak(), ItemMenu_Use(), Menu_BuildPageResult(), and Shop_DrawItemPage().
| struct RenderOutput* InventoryMenuState::selectedItemIcon |
Definition at line 67 of file inventory_menu.h.
Referenced by ItemMenu_DrawItemHead(), ItemMenu_RunCommands(), ItemMenu_RunList(), ItemMenu_RunOwnerSelection(), ItemMenu_SelectGiveQuantity(), and Menu_SelectQuantity().
| u16 InventoryMenuState::flags |
1 while the item's name and command grid are drawn
Definition at line 68 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), and Menu_SelectQuantity().
| s16 InventoryMenuState::completionFlag |
set to 1 as item commands end; not read by name
Definition at line 69 of file inventory_menu.h.
Referenced by InventoryMenu_ShowModalMessage(), ItemMenu_RunCommands(), and ItemMenu_Use().
| u8 InventoryMenuState::unk224[0x36] |
not named by TBS code
Definition at line 70 of file inventory_menu.h.
| s16 InventoryMenuState::messageOffset |
the item use's result, after MsgItemUseResult
Definition at line 71 of file inventory_menu.h.
Referenced by BattleEffect_ApplyToTargets(), ItemMenu_RunCommands(), and ItemMenu_Use().
| s8 InventoryMenuState::equipPreview |
1 while the stats preview a removal, not an equip
Definition at line 72 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), ItemMenu_RunCommands(), ItemMenu_RunList(), and Menu_DrawOwnerStatusPanel().
| u8 InventoryMenuState::listMode |
the command chosen last; 0xff for none
Definition at line 73 of file inventory_menu.h.
Referenced by ItemMenu_ChooseCommand(), and ItemMenu_RunCommands().
| u8 InventoryMenuState::unk25e[2] |
not named by TBS code
Definition at line 74 of file inventory_menu.h.
| s8 InventoryMenuState::selectedIndexByOwner[8] |
each member's entry chosen last
Definition at line 75 of file inventory_menu.h.
Referenced by ItemMenu_PageResult(), ItemMenu_RunList(), ItemMenu_SelectItem(), and Menu_BuildPageResult().
| u8 InventoryMenuState::mode |
not named through this struct; PsynergyMenuState.mode
Definition at line 76 of file inventory_menu.h.
Referenced by ItemMenu_DrawCategory().
| u8 InventoryMenuState::unk269[0x129] |
not named by TBS code
Definition at line 77 of file inventory_menu.h.
| s16 InventoryMenuState::resourceSlots[2] |
VRAM cache slots of two arrow pictures.
Definition at line 78 of file inventory_menu.h.
Referenced by Menu_ResetTwoResourceEntries(), Resource_LoadPairedBlocks(), Resource_LoadPairedBlocksIfAvailable(), UiIcon_CreateStatChangeArrow(), and UiIcon_DrawVariantWithTileOffset().