Alchemy
Loading...
Searching...
No Matches

InventoryMenuState Struct Reference

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

Detailed Description

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.

Field Documentation

◆ unk000

u8 InventoryMenuState::unk000[8]

not named by TBS code

Definition at line 22 of file inventory_menu.h.

◆ selectedOwner

s32 InventoryMenuState::selectedOwner

◆ unk00c

u8 InventoryMenuState::unk00c[4]

not named by TBS code

Definition at line 24 of file inventory_menu.h.

◆ mainWindow

struct UiWindow* InventoryMenuState::mainWindow

Definition at line 25 of file inventory_menu.h.

Referenced by ItemMenu_Close(), ItemMenu_SelectTarget(), and Menu_SelectQuantity().

◆ paneIcons

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().

◆ paneIndex

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().

◆ paneCount

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().

◆ itemWindow

◆ statusWindow

◆ helpWindow

struct UiWindow* InventoryMenuState::helpWindow

◆ infoWindow

◆ equipWindow

struct UiWindow* InventoryMenuState::equipWindow

◆ listWindow

struct UiWindow* InventoryMenuState::listWindow

◆ unknownWindow38

struct UiWindow* InventoryMenuState::unknownWindow38

only closed by name in TBS

Definition at line 39 of file inventory_menu.h.

Referenced by ItemMenu_Close().

◆ modalWindow

struct UiWindow* InventoryMenuState::modalWindow

Definition at line 40 of file inventory_menu.h.

Referenced by InventoryMenu_ShowModalMessage(), and ItemMenu_Close().

◆ unknownWindow40

struct UiWindow* InventoryMenuState::unknownWindow40

only closed by name in TBS

Definition at line 41 of file inventory_menu.h.

Referenced by ItemMenu_Close().

◆ gridCursor

struct RenderOutput* InventoryMenuState::gridCursor

only prepared by name in TBS

Definition at line 42 of file inventory_menu.h.

Referenced by ItemMenu_RunList().

◆ entryIcons

◆ categoryIcons

struct RenderOutput* InventoryMenuState::categoryIcons[8]

◆ unk0e8

u8 InventoryMenuState::unk0e8[0x24]

not named by TBS code

Definition at line 45 of file inventory_menu.h.

◆ messageWindow

◆ selectedColumn

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().

◆ selectedRow

u8 InventoryMenuState::selectedRow

Definition at line 50 of file inventory_menu.h.

Referenced by ItemMenu_Initialize().

◆ columnCount

u8 InventoryMenuState::columnCount

Definition at line 51 of file inventory_menu.h.

Referenced by ItemMenu_Initialize(), and UiWindow_InitializeWork().

◆ rowCount

u8 InventoryMenuState::rowCount

Definition at line 52 of file inventory_menu.h.

Referenced by ItemMenu_Initialize(), and UiWindow_InitializeWork().

◆ ownerObjects

struct AnimationObject* InventoryMenuState::ownerObjects[8]

◆ ownerX

s16 InventoryMenuState::ownerX[8]

screen pixels

Definition at line 55 of file inventory_menu.h.

◆ ownerY

s16 InventoryMenuState::ownerY[8]

screen pixels

Definition at line 56 of file inventory_menu.h.

Referenced by ItemMenu_Initialize(), ItemMenu_RunList(), and ItemMenu_RunOwnerSelection().

◆ ownerScale

s32 InventoryMenuState::ownerScale[8]

16.16 fixed point, 0x10000 full size

Definition at line 57 of file inventory_menu.h.

◆ selectedSlots

u16 InventoryMenuState::selectedSlots[2]

◆ selectedItems

◆ cursor

struct RenderOutput* InventoryMenuState::cursor

Definition at line 60 of file inventory_menu.h.

Referenced by ItemMenu_Close(), ItemMenu_DrawOwnerStatus(), and Menu_SelectQuantity().

◆ unk180

u8 InventoryMenuState::unk180[0x48]

not named by TBS code

Definition at line 61 of file inventory_menu.h.

◆ items

◆ ownerIds

u16 InventoryMenuState::ownerIds[8]

◆ itemCount

◆ partyCount

◆ paneOwner

◆ selectedItemIcon

◆ flags

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().

◆ completionFlag

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().

◆ unk224

u8 InventoryMenuState::unk224[0x36]

not named by TBS code

Definition at line 70 of file inventory_menu.h.

◆ messageOffset

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().

◆ equipPreview

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().

◆ listMode

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().

◆ unk25e

u8 InventoryMenuState::unk25e[2]

not named by TBS code

Definition at line 74 of file inventory_menu.h.

◆ selectedIndexByOwner

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().

◆ mode

u8 InventoryMenuState::mode

not named through this struct; PsynergyMenuState.mode

Definition at line 76 of file inventory_menu.h.

Referenced by ItemMenu_DrawCategory().

◆ unk269

u8 InventoryMenuState::unk269[0x129]

not named by TBS code

Definition at line 77 of file inventory_menu.h.

◆ resourceSlots

s16 InventoryMenuState::resourceSlots[2]