pokeemerald/include/battle_pyramid_bag.h

51 lines
1.4 KiB
C
Raw Normal View History

2018-08-30 20:10:57 +02:00
#ifndef GUARD_BATTLE_PYRAMID_BAG_H
#define GUARD_BATTLE_PYRAMID_BAG_H
#include "list_menu.h"
struct PyramidBagResources
{
void (*callback2)(void);
u8 tilemapBuffer[0x800];
u8 itemsSpriteIds[PYRAMID_BAG_ITEMS_COUNT + 1];
u8 windowIds[5];
u8 unk814;
u8 unk815;
2018-09-06 18:37:45 +02:00
u8 scrollIndicatorsTaskId;
2018-08-30 20:10:57 +02:00
const u8 *menuActionIds;
u8 filler81C[0x820 - 0x81C];
u8 menuActionsCount;
u8 listMenuCount;
u8 listMenuMaxShown;
struct ListMenuItem bagListItems[PYRAMID_BAG_ITEMS_COUNT + 1];
u8 itemStrings[PYRAMID_BAG_ITEMS_COUNT + 1][ITEM_NAME_LENGTH + 10];
s16 state;
u8 filler986[0x98C - 0x986];
};
struct PyramidBagCursorData
{
void (*callback)(void);
u8 unk4;
u16 cursorPosition;
u16 scrollPosition;
};
extern struct PyramidBagResources *gPyramidBagResources;
extern struct PyramidBagCursorData gPyramidBagCursorData;
2019-02-07 03:01:29 +01:00
void InitBattlePyramidBagCursorPosition(void);
2018-08-30 20:10:57 +02:00
void CB2_PyramidBagMenuFromStartMenu(void);
2019-10-18 01:22:03 +02:00
void CB2_ReturnToPyramidBagMenu(void);
2018-08-30 20:10:57 +02:00
void sub_81C5924(void);
void sub_81C59BC(void);
void sub_81C4EFC(void);
2019-10-18 01:22:03 +02:00
void GoToBattlePyramidBagMenu(u8 a0, void (*callback)(void));
2018-08-30 20:10:57 +02:00
void sub_81C6714(u8 taskId);
2019-10-18 01:22:03 +02:00
void TryStoreHeldItemsInPyramidBag(void);
2018-08-30 20:10:57 +02:00
void sub_81C4F24(void);
void sub_81C5B14(u8 taskId);
void DisplayItemMessageInBattlePyramid(u8 taskId, const u8 *str, void (*callback)(u8 taskId));
#endif // GUARD_BATTLE_PYRAMID_BAG_H