more menus

This commit is contained in:
DizzyEggg
2025-03-02 12:34:10 +01:00
parent 0f62647e51
commit abbf389ffd
15 changed files with 132 additions and 145 deletions

View File

@@ -4,11 +4,11 @@
// size: 0x4
typedef struct unkStruct_202EE44
{
u16 unk0;
u16 actionId;
u8 unk2;
bool8 unk3;
bool8 canBeChosen;
} unkStruct_202EE44;
extern unkStruct_202EE44 gUnknown_202EE44[10];
extern unkStruct_202EE44 gDungeonSubMenu[10];
#endif // GUARD_CODE_8044CC8_H

View File

@@ -2,7 +2,13 @@
#define GUARD_DUNGEON_MENU_TEAM_H
#include "structs/dungeon_entity.h"
#include "structs/subStruct_203B240.h"
bool8 ShowDungeonTeamMenu(Entity *a0);
void ShowDungeonTacticsMenu(ActionContainer *a0);
void ShowDungeonSummaryOrIQMenu(ActionContainer *a0, bool8 a1);
void sub_8062500(void);
void sub_80625A4(s32 count, struct subStruct_203B240 **strings);
#define WHICH_MENU_MOVES 1
#define WHICH_MENU_ITEMS 2
Entity *ShowDungeonToWhichMonMenu(s32 *teamId, s32 caseId);

View File

@@ -42,6 +42,11 @@ static inline void InlineStrncpy(u8 *dst, const u8 *src, s32 n)
strncpy(dst, src, n);
}
static inline bool8 AreStringsDifferent(const u8 *str1, const u8 *str2)
{
return strcmp(str1, str2) != 0;
}
// Sometimes incrementing and decrementing a variable changes how registers are allocated, which helps with matching functions. Functionality-wise this doesn't do anything.
#ifdef NONMATCHING
#define ASM_MATCH_TRICK(a) {;}

View File

@@ -53,8 +53,8 @@ extern UnkTextStruct1 gUnknown_2027370[4];
extern u8 gUnknown_202749A[11];
extern bool8 gUnknown_20274A5;
extern u16 gUnknown_202B038[4][32][32]; // Usage points to these dimensions
extern void (*gIwramTextFunc1)(s32 a0);
extern void (*gIwramTextFunc2)(s32 a0);
extern void (*ScrollDownWindowFunc)(s32 windowId);
extern void (*ScrollUpWindowFunc)(s32 windowId);
extern void (*gIwramTextFunc3)(s32 a0);
extern void (*gIwramTextFunc4)(s32 a0);