Merge pull request #1000 from GriffinRichards/doc-dex
Document pokedex.c
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -3282,25 +3282,24 @@ extern const u32 gBattleTerrainPalette_StadiumDrake[];
|
||||
extern const u32 gBattleTerrainPalette_StadiumWallace[];
|
||||
|
||||
// pokedex
|
||||
extern const u32 gPokedexMenu2_Gfx[];
|
||||
extern const u16 gPokedexText_Pal[];
|
||||
extern const u32 gPokedexInterface_Gfx[];
|
||||
extern const u16 gPokedexBgHoenn_Pal[];
|
||||
extern const u32 gPokedexMenu_Gfx[];
|
||||
extern const u8 gPokedexTilemap_Main[];
|
||||
extern const u8 gPokedexTilemap_MainUnderlay[];
|
||||
extern const u8 gPokedexTilemap_StartMenu1[];
|
||||
extern const u8 gPokedexTilemap_StartMenu2[];
|
||||
extern const u16 gPokedexHoennBg_Pal[];
|
||||
extern const u16 gPokedexText_Pal[];
|
||||
extern const u16 gPokedexNationalBg_Pal[];
|
||||
extern const u8 gPokedexTilemap_DescriptionScreen[];
|
||||
extern const u8 gPokedexTilemap_CryScreen[];
|
||||
extern const u8 gPokedexTilemap_SizeScreen[];
|
||||
extern const u8 gPokedexTilemap_ScreenSelectBar1[];
|
||||
extern const u8 gPokedexTilemap_ScreenSelectBar2[];
|
||||
extern const u16 gPokedexCaughtScreenFade_Pal[];
|
||||
extern const u8 gPokedexList_Tilemap[];
|
||||
extern const u8 gPokedexListUnderlay_Tilemap[];
|
||||
extern const u8 gPokedexStartMenuMain_Tilemap[];
|
||||
extern const u8 gPokedexStartMenuSearchResults_Tilemap[];
|
||||
extern const u16 gPokedexSearchResults_Pal[];
|
||||
extern const u16 gPokedexBgNational_Pal[];
|
||||
extern const u8 gPokedexInfoScreen_Tilemap[];
|
||||
extern const u8 gPokedexCryScreen_Tilemap[];
|
||||
extern const u8 gPokedexSizeScreen_Tilemap[];
|
||||
extern const u8 gPokedexScreenSelectBarMain_Tilemap[];
|
||||
extern const u8 gPokedexScreenSelectBarSubmenu_Tilemap[];
|
||||
extern const u16 gPokedexCaughtScreen_Pal[];
|
||||
extern const u32 gPokedexSearchMenu_Gfx[];
|
||||
extern const u32 gPokedexSearch2_Tilemap[];
|
||||
extern const u32 gPokedexSearch1_Tilemap[];
|
||||
extern const u32 gPokedexSearchMenuHoenn_Tilemap[];
|
||||
extern const u32 gPokedexSearchMenuNational_Tilemap[];
|
||||
extern const u16 gPokedexSearchMenu_Pal[];
|
||||
|
||||
// berry tag screen
|
||||
|
||||
@@ -2,11 +2,7 @@
|
||||
#define GUARD_POKEDEX_H
|
||||
|
||||
extern u8 gUnusedPokedexU8;
|
||||
extern void (*gUnknown_030060B4)(void);
|
||||
|
||||
#define KANTO_DEX_COUNT 151
|
||||
#define HOENN_DEX_COUNT 202
|
||||
#define NATIONAL_DEX_COUNT 386
|
||||
extern void (*gPokedexVBlankCB)(void);
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -39,12 +35,12 @@ void ResetPokedex(void);
|
||||
u16 GetPokedexHeightWeight(u16 dexNum, u8 data);
|
||||
u16 GetNationalPokedexCount(u8);
|
||||
u16 GetHoennPokedexCount(u8);
|
||||
u8 CreateDexDisplayMonDataTask(u16 dexNum, u32 trainerId, u32 personality);
|
||||
u8 DisplayCaughtMonDexPage(u16 dexNum, u32 otId, u32 personality);
|
||||
s8 GetSetPokedexFlag(u16 nationalNum, u8 caseId);
|
||||
u16 CreateMonSpriteFromNationalDexNumber(u16, s16, s16, u16);
|
||||
bool16 HasAllHoennMons(void);
|
||||
void ResetPokedexScrollPositions(void);
|
||||
bool16 HasAllMons(void);
|
||||
void CB2_Pokedex(void);
|
||||
void CB2_OpenPokedex(void);
|
||||
|
||||
#endif // GUARD_POKEDEX_H
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#ifndef GUARD_POKEDEX_CRY_SCREEN_H
|
||||
#define GUARD_POKEDEX_CRY_SCREEN_H
|
||||
|
||||
struct CryRelatedStruct
|
||||
struct CryScreenWindow
|
||||
{
|
||||
u16 unk0;
|
||||
u8 unk2;
|
||||
u16 unk0; // Assigned to val that's never read
|
||||
u8 unk2; // Never read
|
||||
u8 paletteNo;
|
||||
u8 xPos;
|
||||
u8 yPos;
|
||||
@@ -12,10 +12,10 @@ struct CryRelatedStruct
|
||||
|
||||
extern u8 gDexCryScreenState;
|
||||
|
||||
bool8 sub_8145354(struct CryRelatedStruct*, u8);
|
||||
void sub_814545C(u8);
|
||||
void sub_8145534(u16);
|
||||
bool8 sub_8145850(struct CryRelatedStruct*, u8);
|
||||
void sub_8145914(void);
|
||||
bool8 LoadCryWaveformWindow(struct CryScreenWindow*, u8);
|
||||
void UpdateCryWaveformWindow(u8);
|
||||
void CryScreenPlayButton(u16);
|
||||
bool8 LoadCryMeter(struct CryScreenWindow*, u8);
|
||||
void FreeCryScreen(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user