Attempt to decompile activemenuRender

This commit is contained in:
Ryan Dwyer
2021-01-01 23:37:36 +10:00
parent 60c7b619d9
commit 48498eb313
6 changed files with 446 additions and 26 deletions
+4
View File
@@ -156,6 +156,10 @@
#define AMSLOTFLAG_ACTIVE 0x08 // pulsates slightly, eg. cloak/xray when active
#define AMSLOTFLAG_NOAMMO 0x10 // black BG, no border, orange text
#define AMSLOTMODE_DEFAULT 0
#define AMSLOTMODE_FOCUSED 1
#define AMSLOTMODE_CURRENT 2
// Active menu (weapon wheel) modes
#define AMMODE_CLOSED 0
#define AMMODE_VIEW 1
+1 -1
View File
@@ -174,7 +174,7 @@ extern struct menudialog menudialog_fullcontrollerpak;
extern struct menudialog menudialog_cannotreadgameboy;
extern struct menudialog menudialog_datalost;
extern struct menudialog menudialog_picktarget;
extern u32 var800719a0;
extern u8 var800719a0[3][3];
extern u16 options_controlmode[];
extern u16 g_AimControlOptions[];
extern u16 g_SoundModeOptions[];
+3 -3
View File
@@ -16,11 +16,11 @@ void activemenuAssignWeaponSlots(void);
void activemenuOpen(void);
void activemenuClose(void);
bool activemenuIsCramped(void);
void activemenuCalculateSlotPosition(s16 param_1, s16 param_2, s16 *param_3, s16 *param_4);
Gfx *activemenuRenderText(Gfx *gdl, char *text, s32 arg2, s16 left, s16 top);
void activemenuCalculateSlotPosition(s16 column, s16 row, s16 *x, s16 *y);
Gfx *activemenuRenderText(Gfx *gdl, char *text, u32 colour, s16 left, s16 top);
Gfx *activemenuRenderAibotInfo(Gfx *gdl, s32 buddynum);
Gfx *activemenuRenderSlot(Gfx *gdl, char *text, s16 x, s16 y, s32 mode, s32 flags);
Gfx *func0f100ad0(Gfx *gdl);
Gfx *activemenuRender(Gfx *gdl);
s32 menudialog000fcd48(u32 operation, struct menudialog *dialog, union handlerdata *data);
s32 menudialogMpPickTarget(u32 operation, struct menudialog *dialog, union handlerdata *data);
s32 menuhandler000fcc34(u32 operation, struct menuitem *item, union handlerdata *data);
+2 -2
View File
@@ -78,8 +78,8 @@ struct g_vars {
/*000308*/ u32 unk000308;
/*00030c*/ u32 unk00030c;
/*000310*/ u32 unk000310;
/*000314*/ bool mplayerisrunning;
/*000318*/ bool normmplayerisrunning;
/*000314*/ bool mplayerisrunning; // combat sim with any number of players, coop with human buddy, and counter-op
/*000318*/ bool normmplayerisrunning; // combat sim with any number of players
/*00031c*/ s32 lvmpbotlevel;
/*000320*/ s32 unk000320;
/*000324*/ s32 unk000324;