pmd-red/include/structs/menu.h

84 lines
1.7 KiB
C
Raw Normal View History

2021-07-07 16:39:34 +00:00
#ifndef GUARD_MENU_H
#define GUARD_MENU_H
2023-09-12 12:27:10 +00:00
#include "sprite_oam.h"
2023-09-21 02:26:35 +00:00
#include "structs/str_text.h"
2024-07-23 10:11:32 +00:00
#include "structs/str_position.h"
// size: 0xC
typedef struct MenuInputStructSub
{
u8 unk0;
/* 0x1 */ u8 a_button;
/* 0x2 */ u8 b_button;
/* 0x3 */ u8 dpad_right;
/* 0x4 */ u8 dpad_left;
u8 fill5[3];
u16 unk8;
s16 unkA;
} MenuInputStructSub;
// size: 0x34
typedef struct MenuInputStruct
{
s32 unk0;
u16 unk4;
s16 unk6;
2024-07-23 10:11:32 +00:00
Position unk8; // Maybe Position
s16 unkC; // Maybe Position
s16 unkE;
u32 unk10;
2024-07-23 10:11:32 +00:00
Position unk14; // Maybe Position
/* 0x18 */ s16 menuIndex;
s16 unk1A;
s16 unk1C;
s16 unk1E;
s16 unk20;
s16 unk22;
u16 unk24;
u16 unk26;
MenuInputStructSub unk28;
} MenuInputStruct;
2023-08-04 04:37:49 +00:00
// size: 0x8
typedef struct MenuItem
{
2022-09-16 17:48:13 +00:00
const u8 *text;
2023-02-12 17:24:40 +00:00
s32 menuAction; // action??
} MenuItem;
2023-08-04 04:37:49 +00:00
// size: 0x50
typedef struct MenuStruct
{
2023-02-26 16:36:23 +00:00
const u8 *unk0; // header text?
/* 0x4 */ const MenuItem *menuItems;
const u32 *menuTextColorArray;
u16 *unkC;
/* 0x10 */ s32 index;
/* 0x14 */ MenuInputStruct input;
/* 0x48 */ s32 menuAction;
bool8 unk4C;
bool8 unk4D;
bool8 unk4E;
} MenuStruct;
2023-09-12 12:27:10 +00:00
// size: 0x30. Seems to be info for a NumericUpDown
typedef struct unkStructFor8013AA0
{
s32 unk0; // chosenValue?
s32 unk4; // curValue or initialValue
s32 unk8; // minInclusive?
s32 unkC; // maxInclusive?
s32 unk10;
s32 unk14; // index of unk18? But read as chosenValue..?
UnkTextStruct2 *unk18;
s32 unk1C; // width of prompt?
s32 unk20; // height of prompt?
u8 unk24; // related to unk10
u8 unk25; // related to unk10
u8 unk26;
SpriteOAM unk28;
} unkStructFor8013AA0;
2024-07-23 10:11:32 +00:00
#endif // GUARD_MENU_H