2021-03-30 18:11:51 +00:00
|
|
|
#ifndef GUARD_TRADE_ITEMS_MENU_H
|
|
|
|
#define GUARD_TRADE_ITEMS_MENU_H
|
|
|
|
|
2021-06-10 03:54:21 +00:00
|
|
|
#include "text.h"
|
2021-07-10 00:35:12 +00:00
|
|
|
#include "item.h"
|
2021-03-30 18:11:51 +00:00
|
|
|
|
|
|
|
struct TradeSubStruct
|
|
|
|
{
|
2021-09-02 01:05:30 +00:00
|
|
|
union ItemIdx {
|
|
|
|
u8 itemIndex; // item id?
|
|
|
|
u32 itemIndex_u32;
|
|
|
|
} itemIdx;
|
2021-05-15 23:59:55 +00:00
|
|
|
u32 numItems; // number of items?
|
2021-03-30 18:11:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct TradeItemsMenu
|
|
|
|
{
|
|
|
|
// size: 0x3A0
|
|
|
|
u32 currMenu;
|
|
|
|
u32 unk4;
|
|
|
|
u32 itemMode;
|
|
|
|
u32 linkStatus;
|
|
|
|
u32 unk10;
|
2021-05-15 23:59:55 +00:00
|
|
|
u32 numItemsToSend; // item #
|
2021-03-30 18:11:51 +00:00
|
|
|
u32 unk18;
|
|
|
|
u32 unk1C;
|
|
|
|
u32 unk20;
|
|
|
|
u32 unk24;
|
|
|
|
u32 unk28;
|
2021-06-10 03:54:21 +00:00
|
|
|
struct UnkTextStruct2 *unk2C;
|
2021-03-30 18:11:51 +00:00
|
|
|
u32 unk30;
|
|
|
|
u32 unk34;
|
|
|
|
u8 fill38[0x44 - 0x38];
|
|
|
|
u32 unk44;
|
|
|
|
u8 fill8[0x134 - 0x48];
|
|
|
|
u32 unk134;
|
|
|
|
u8 fill138[0x184 - 0x138];
|
2021-06-10 03:54:21 +00:00
|
|
|
struct UnkTextStruct2 unk184[4];
|
|
|
|
struct UnkTextStruct2 unk1E4[4];
|
2021-03-30 18:11:51 +00:00
|
|
|
|
|
|
|
// TODO These might be structs...
|
|
|
|
struct TradeSubStruct unk244;
|
|
|
|
|
|
|
|
struct TradeSubStruct unk24C;
|
|
|
|
|
2021-07-10 00:35:12 +00:00
|
|
|
/* 0x254 */ struct TradeSubStruct sentItem;
|
2021-03-30 18:11:51 +00:00
|
|
|
|
2021-07-10 16:23:20 +00:00
|
|
|
/* 0x25C */ struct ItemSlot itemToSend;
|
2021-07-10 00:35:12 +00:00
|
|
|
|
|
|
|
u8 fill25F[0x3A0 - 0x260];
|
2021-03-30 18:11:51 +00:00
|
|
|
};
|
|
|
|
|
2021-06-23 22:35:37 +00:00
|
|
|
|
|
|
|
s32 UpdateTradeItemsMenu(void);
|
|
|
|
s32 CreateTradeItemsMenu(void);
|
|
|
|
void CleanTradeItemsMenu(void);
|
|
|
|
|
2021-03-30 18:11:51 +00:00
|
|
|
#endif
|