pokeemerald/include/pokenav.h

500 lines
15 KiB
C
Raw Normal View History

2017-11-23 02:10:35 +01:00
#ifndef GUARD_POKENAV_H
#define GUARD_POKENAV_H
#include "bg.h"
2019-04-16 21:18:01 +02:00
#include "main.h"
2019-07-25 21:41:02 +02:00
#include "pokemon_storage_system.h"
2019-07-19 02:46:00 +02:00
typedef u32 (*LoopedTask)(s32 state);
2021-11-13 02:24:14 +01:00
struct PokenavMonListItem
2019-08-05 16:54:56 +02:00
{
u8 boxId;
u8 monId;
2019-12-05 21:33:36 +01:00
u16 data;
2019-08-05 16:54:56 +02:00
};
2021-11-13 02:24:14 +01:00
struct PokenavMatchCallEntry
{
bool8 isSpecialTrainer;
u8 mapSec;
u16 headerId;
};
struct PokenavListItem
{
union {
struct PokenavMonListItem mon;
struct PokenavMatchCallEntry call;
} item;
};
2021-11-13 18:52:41 +01:00
typedef void (*PokenavListBufferItemFunc)(struct PokenavListItem *, u8 *);
struct PokenavListTemplate
{
struct PokenavListItem * list;
2020-10-11 00:17:34 +02:00
u16 count;
2021-11-13 18:52:41 +01:00
u16 startIndex;
u8 itemSize;
2020-10-11 00:17:34 +02:00
u8 item_X;
u8 windowWidth;
u8 listTop;
u8 maxShowed;
u8 fillValue;
u8 fontId;
2021-11-13 18:52:41 +01:00
PokenavListBufferItemFunc bufferItemFunc;
void (*iconDrawFunc)(u16 windowId, u32 listItemId, u32 baseTile);
};
2021-11-13 02:24:14 +01:00
struct PokenavMonList
2019-07-25 21:41:02 +02:00
{
2020-10-11 00:17:34 +02:00
u16 listCount;
u16 currIndex;
2021-11-13 02:24:14 +01:00
struct PokenavMonListItem monData[TOTAL_BOXES_COUNT * IN_BOX_COUNT + PARTY_SIZE];
2019-07-25 21:41:02 +02:00
};
// Return values of LoopedTask functions.
#define LT_INC_AND_PAUSE 0
#define LT_INC_AND_CONTINUE 1
#define LT_PAUSE 2
#define LT_CONTINUE 3
#define LT_FINISH 4
#define LT_SET_STATE(newState) (newState + 5)
2019-04-13 22:54:05 +02:00
enum
{
2019-12-07 10:08:21 +01:00
POKENAV_MODE_NORMAL, // Chosen from Start menu.
POKENAV_MODE_FORCE_CALL_READY, // Pokenav tutorial before calling Mr. Stone
POKENAV_MODE_FORCE_CALL_EXIT, // Pokenav tutorial after calling Mr. Stone
2019-04-13 22:54:05 +02:00
};
2021-11-11 22:50:36 +01:00
enum
2020-10-11 00:17:34 +02:00
{
POKENAV_SUBSTRUCT_MAIN_MENU,
POKENAV_SUBSTRUCT_MAIN_MENU_HANDLER,
POKENAV_SUBSTRUCT_MENU_GFX,
2020-10-11 00:17:34 +02:00
POKENAV_SUBSTRUCT_REGION_MAP_STATE,
POKENAV_SUBSTRUCT_REGION_MAP_ZOOM,
POKENAV_SUBSTRUCT_MATCH_CALL_MAIN,
POKENAV_SUBSTRUCT_MATCH_CALL_OPEN,
POKENAV_SUBSTRUCT_CONDITION_SEARCH_RESULTS,
2021-11-11 22:50:36 +01:00
POKENAV_SUBSTRUCT_CONDITION_SEARCH_RESULTS_GFX,
2020-10-11 00:17:34 +02:00
POKENAV_SUBSTRUCT_RIBBONS_MON_LIST,
POKENAV_SUBSTRUCT_RIBBONS_MON_MENU,
2021-11-11 22:50:36 +01:00
POKENAV_SUBSTRUCT_CONDITION_GRAPH_MENU,
POKENAV_SUBSTRUCT_CONDITION_GRAPH_MENU_GFX,
2020-10-11 00:17:34 +02:00
POKENAV_SUBSTRUCT_RIBBONS_SUMMARY_LIST,
POKENAV_SUBSTRUCT_RIBBONS_SUMMARY_MENU,
POKENAV_SUBSTRUCT_UNUSED,
2020-10-11 00:17:34 +02:00
POKENAV_SUBSTRUCT_REGION_MAP,
2021-11-13 18:52:41 +01:00
POKENAV_SUBSTRUCT_LIST,
2020-10-11 00:17:34 +02:00
POKENAV_SUBSTRUCT_MON_LIST,
POKENAV_SUBSTRUCT_COUNT,
};
2020-02-05 08:47:32 +01:00
enum
{
POKENAV_GFX_MAIN_MENU,
POKENAV_GFX_CONDITION_MENU,
POKENAV_GFX_RIBBONS_MENU,
POKENAV_GFX_MATCH_CALL_MENU,
POKENAV_GFX_MAP_MENU_ZOOMED_OUT,
POKENAV_GFX_MAP_MENU_ZOOMED_IN,
POKENAV_GFX_PARTY_MENU,
POKENAV_GFX_SEARCH_MENU,
POKENAV_GFX_COOL_MENU,
POKENAV_GFX_BEAUTY_MENU,
POKENAV_GFX_CUTE_MENU,
POKENAV_GFX_SMART_MENU,
POKENAV_GFX_TOUGH_MENU,
POKENAV_GFX_MENUS_END,
};
#define POKENAV_GFX_SUBMENUS_START POKENAV_GFX_PARTY_MENU
2019-04-13 22:54:05 +02:00
#define POKENAV_MENU_IDS_START 100000
enum
{
POKENAV_MAIN_MENU = POKENAV_MENU_IDS_START, // The main menu where the player selects Hoenn Map/Condition/Match Call/Ribbons
POKENAV_MAIN_MENU_CURSOR_ON_MAP,
POKENAV_CONDITION_MENU, // The first Condition screen where the player selects Party or Search
POKENAV_CONDITION_SEARCH_MENU, // The Condition search menu where the player selects a search parameter
POKENAV_MAIN_MENU_CURSOR_ON_MATCH_CALL,
POKENAV_MAIN_MENU_CURSOR_ON_RIBBONS,
POKENAV_REGION_MAP,
POKENAV_CONDITION_GRAPH_PARTY, // The Condition graph screen when Party has been selected
POKENAV_CONDITION_SEARCH_RESULTS, // The list of results from a Condition search
POKENAV_CONDITION_GRAPH_SEARCH, // The Condition graph screen when a search result has been selected
POKENAV_RETURN_CONDITION_SEARCH, // Exited the graph screen back to the list of Condition search results
POKENAV_MATCH_CALL,
POKENAV_RIBBONS_MON_LIST, // The list of Pokémon with ribbons
POKENAV_RIBBONS_SUMMARY_SCREEN, // The ribbon summary screen shown when a Pokémon has been selected
POKENAV_RIBBONS_RETURN_TO_MON_LIST, // Exited the summary screen back to the ribbon list
2019-04-13 22:54:05 +02:00
};
2020-02-01 06:25:50 +01:00
enum
{
POKENAV_MENU_TYPE_DEFAULT,
POKENAV_MENU_TYPE_UNLOCK_MC,
POKENAV_MENU_TYPE_UNLOCK_MC_RIBBONS,
POKENAV_MENU_TYPE_CONDITION,
POKENAV_MENU_TYPE_CONDITION_SEARCH,
POKENAV_MENU_TYPE_COUNT
};
// Global IDs for menu selections
// As opposed to the cursor position, which is only relative to the number of options for the current menu
enum
{
POKENAV_MENUITEM_MAP,
POKENAV_MENUITEM_CONDITION,
POKENAV_MENUITEM_MATCH_CALL,
POKENAV_MENUITEM_RIBBONS,
POKENAV_MENUITEM_SWITCH_OFF,
POKENAV_MENUITEM_CONDITION_PARTY,
POKENAV_MENUITEM_CONDITION_SEARCH,
POKENAV_MENUITEM_CONDITION_CANCEL,
POKENAV_MENUITEM_CONDITION_SEARCH_COOL,
POKENAV_MENUITEM_CONDITION_SEARCH_BEAUTY,
POKENAV_MENUITEM_CONDITION_SEARCH_CUTE,
POKENAV_MENUITEM_CONDITION_SEARCH_SMART,
POKENAV_MENUITEM_CONDITION_SEARCH_TOUGH,
POKENAV_MENUITEM_CONDITION_SEARCH_CANCEL,
};
// Max menu options (condition search uses 6)
#define MAX_POKENAV_MENUITEMS 6
2019-12-07 10:08:21 +01:00
enum
{
HELPBAR_NONE,
HELPBAR_MAP_ZOOMED_OUT,
HELPBAR_MAP_ZOOMED_IN,
HELPBAR_CONDITION_MON_LIST,
HELPBAR_CONDITION_MON_STATUS,
HELPBAR_CONDITION_MARKINGS,
HELPBAR_MC_TRAINER_LIST,
HELPBAR_MC_CALL_MENU,
HELPBAR_MC_CHECK_PAGE,
HELPBAR_RIBBONS_MON_LIST,
HELPBAR_RIBBONS_LIST,
HELPBAR_RIBBONS_CHECK,
HELPBAR_COUNT
};
enum
{
MC_HEADER_MR_STONE,
MC_HEADER_PROF_BIRCH,
MC_HEADER_BRENDAN,
MC_HEADER_MAY,
MC_HEADER_WALLY,
MC_HEADER_NORMAN,
MC_HEADER_MOM,
MC_HEADER_STEVEN,
MC_HEADER_SCOTT,
MC_HEADER_ROXANNE,
MC_HEADER_BRAWLY,
MC_HEADER_WATTSON,
MC_HEADER_FLANNERY,
MC_HEADER_WINONA,
MC_HEADER_TATE_LIZA,
MC_HEADER_JUAN,
MC_HEADER_SIDNEY,
MC_HEADER_PHOEBE,
MC_HEADER_GLACIA,
MC_HEADER_DRAKE,
MC_HEADER_WALLACE,
MC_HEADER_COUNT
};
2019-12-05 21:33:36 +01:00
enum
{
MATCH_CALL_OPTION_CALL,
MATCH_CALL_OPTION_CHECK,
MATCH_CALL_OPTION_CANCEL,
MATCH_CALL_OPTION_COUNT
};
enum
{
CHECK_PAGE_STRATEGY,
CHECK_PAGE_POKEMON,
CHECK_PAGE_INTRO_1,
CHECK_PAGE_INTRO_2,
CHECK_PAGE_ENTRY_COUNT
};
#define MCFLAVOR(name) {[CHECK_PAGE_STRATEGY] = gText_MatchCall##name##_Strategy, \
[CHECK_PAGE_POKEMON] = gText_MatchCall##name##_Pokemon, \
[CHECK_PAGE_INTRO_1] = gText_MatchCall##name##_Intro1, \
[CHECK_PAGE_INTRO_2] = gText_MatchCall##name##_Intro2}
2020-02-01 06:25:50 +01:00
// Pokenav Function IDs
// Indices into the LoopedTask tables for each of the main Pokenav features
2020-10-11 00:17:34 +02:00
enum RegionMapFuncIds
2020-02-01 06:25:50 +01:00
{
POKENAV_MENU_FUNC_NONE,
POKENAV_MENU_FUNC_MOVE_CURSOR,
POKENAV_MENU_FUNC_OPEN_CONDITION,
POKENAV_MENU_FUNC_RETURN_TO_MAIN,
POKENAV_MENU_FUNC_OPEN_CONDITION_SEARCH,
POKENAV_MENU_FUNC_RETURN_TO_CONDITION,
POKENAV_MENU_FUNC_NO_RIBBON_WINNERS,
POKENAV_MENU_FUNC_RESHOW_DESCRIPTION,
POKENAV_MENU_FUNC_OPEN_FEATURE,
};
2021-11-11 22:50:36 +01:00
enum
2020-10-11 00:17:34 +02:00
{
2021-11-11 22:50:36 +01:00
CONDITION_FUNC_NONE,
CONDITION_FUNC_SLIDE_MON_IN,
CONDITION_FUNC_RETURN,
CONDITION_FUNC_NO_TRANSITION,
CONDITION_FUNC_SLIDE_MON_OUT,
CONDITION_FUNC_ADD_MARKINGS,
CONDITION_FUNC_CLOSE_MARKINGS,
2020-10-11 00:17:34 +02:00
};
2021-11-11 22:50:36 +01:00
enum
{
CONDITION_LOAD_MON_INFO,
CONDITION_LOAD_GRAPH,
CONDITION_LOAD_MON_PIC,
};
2020-10-11 00:17:34 +02:00
#define POKENAV_MENU_FUNC_EXIT -1
2019-12-07 10:08:21 +01:00
enum
{
POKENAV_MC_FUNC_NONE,
POKENAV_MC_FUNC_DOWN,
POKENAV_MC_FUNC_UP,
POKENAV_MC_FUNC_PG_DOWN,
POKENAV_MC_FUNC_PG_UP,
POKENAV_MC_FUNC_SELECT,
POKENAV_MC_FUNC_MOVE_OPTIONS_CURSOR,
POKENAV_MC_FUNC_CANCEL,
POKENAV_MC_FUNC_CALL_MSG,
POKENAV_MC_FUNC_NEARBY_MSG,
2021-11-12 23:28:06 +01:00
POKENAV_MC_FUNC_EXIT_CALL,
2019-12-07 10:08:21 +01:00
POKENAV_MC_FUNC_SHOW_CHECK_PAGE,
POKENAV_MC_FUNC_CHECK_PAGE_UP,
POKENAV_MC_FUNC_CHECK_PAGE_DOWN,
POKENAV_MC_FUNC_EXIT_CHECK_PAGE,
POKENAV_MC_FUNC_EXIT
};
2019-12-06 04:34:55 +01:00
2020-02-05 08:47:32 +01:00
enum
{
POKENAV_MAP_FUNC_NONE,
POKENAV_MAP_FUNC_CURSOR_MOVED,
POKENAV_MAP_FUNC_ZOOM_OUT,
POKENAV_MAP_FUNC_ZOOM_IN,
POKENAV_MAP_FUNC_EXIT,
};
2021-11-12 23:28:06 +01:00
// Modes for PokenavFadeScreen
enum {
POKENAV_FADE_TO_BLACK,
POKENAV_FADE_FROM_BLACK,
POKENAV_FADE_TO_BLACK_ALL,
POKENAV_FADE_FROM_BLACK_ALL,
};
// pokenav.c
2020-02-01 06:25:50 +01:00
void SetSelectedConditionSearch(u32);
u32 GetSelectedConditionSearch(void);
2019-03-02 09:18:08 +01:00
void CB2_InitPokeNav(void);
u32 CreateLoopedTask(LoopedTask loopedTask, u32 priority);
bool32 FuncIsActiveLoopedTask(LoopedTask func);
void *GetSubstructPtr(u32 index);
void FreePokenavSubstruct(u32 index);
void *AllocSubstruct(u32 index, u32 size);
void Pokenav_AllocAndLoadPalettes(const struct SpritePalette *palettes);
bool32 IsLoopedTaskActive(u32 taskId);
void SetPokenavMode(u16 mode);
u32 GetPokenavMode(void);
bool32 CanViewRibbonsMenu(void);
2019-04-16 21:18:01 +02:00
void SetPokenavVBlankCallback(void);
void SetVBlankCallback_(IntrCallback callback);
2021-11-15 06:21:40 +01:00
// pokenav_list.c
2021-11-13 18:52:41 +01:00
bool32 CreatePokenavList(const struct BgTemplate *bgTemplate, struct PokenavListTemplate *listTemplate, s32 tileOffset);
bool32 IsCreatePokenavListTaskActive(void);
void DestroyPokenavList(void);
2021-11-15 04:21:50 +01:00
u32 PokenavList_GetSelectedIndex(void);
2021-11-13 18:52:41 +01:00
int PokenavList_MoveCursorUp(void);
int PokenavList_MoveCursorDown(void);
int PokenavList_PageDown(void);
int PokenavList_PageUp(void);
2021-11-15 04:21:50 +01:00
bool32 PokenavList_IsMoveWindowTaskActive(void);
2021-11-13 18:52:41 +01:00
void PokenavList_ToggleVerticalArrows(bool32 shouldHide);
void PokenavList_DrawCurrentItemIcon(void);
2021-11-15 04:21:50 +01:00
void PokenavList_EraseListForCheckPage(void);
bool32 PokenavList_IsTaskActive(void);
2021-11-15 06:21:40 +01:00
void PrintCheckPageInfo(s16 delta);
2021-11-15 04:21:50 +01:00
u32 PokenavList_GetTopIndex(void);
void PokenavList_ReshowListFromCheckPage(void);
2019-04-14 20:21:06 +02:00
// pokenav_match_call_data.c
bool32 MatchCall_HasCheckPage(u32 idx);
2019-12-07 10:08:21 +01:00
u8 MatchCall_GetMapSec(u32 idx);
bool32 MatchCall_HasRematchId(u32 idx);
bool32 MatchCall_GetEnabled(u32 idx);
2019-04-14 20:21:06 +02:00
u32 MatchCall_GetRematchTableIdx(u32 idx);
u32 GetTrainerIdxByRematchIdx(u32 rematchIdx);
int MatchCall_GetOverrideFacilityClass(u32 idx);
2019-04-14 20:21:06 +02:00
void MatchCall_GetMessage(u32 idx, u8 *dest);
const u8 *MatchCall_GetOverrideFlavorText(u32 idx, u32 offset);
2019-12-07 10:08:21 +01:00
void MatchCall_GetNameAndDesc(u32 idx, const u8 **desc, const u8 **name);
2017-11-23 02:10:35 +01:00
2019-04-13 22:54:05 +02:00
// pokenav_main_menu.c
bool32 InitPokenavMainMenu(void);
void CopyPaletteIntoBufferUnfaded(const u16 *palette, u32 bufferOffset, u32 size);
2022-05-21 21:21:50 +02:00
void RunMainMenuLoopedTask(u32 state);
2020-10-11 00:17:34 +02:00
u32 IsActiveMenuLoopTaskActive(void);
2022-05-21 21:21:50 +02:00
void LoadLeftHeaderGfxForIndex(u32 menuGfxId);
void ShowLeftHeaderGfx(u32 menugfxId, bool32 isMain, bool32 isOnRightSide);
2020-02-05 08:47:32 +01:00
void PokenavFadeScreen(s32 fadeType);
2020-10-11 00:17:34 +02:00
bool32 AreLeftHeaderSpritesMoving(void);
void InitBgTemplates(const struct BgTemplate *templates, int count);
bool32 IsPaletteFadeActive(void);
2019-12-07 10:08:21 +01:00
void PrintHelpBarText(u32 textId);
bool32 WaitForHelpBar(void);
2020-10-11 00:17:34 +02:00
void SlideMenuHeaderDown(void);
2019-04-16 18:00:13 +02:00
bool32 MainMenuLoopedTaskIsBusy(void);
2020-10-11 00:17:34 +02:00
void SetLeftHeaderSpritesInvisibility(void);
void PokenavCopyPalette(const u16 *a0, const u16 *a1, int a2, int a3, int a4, u16 *palette);
void FadeToBlackExceptPrimary(void);
2021-11-12 23:28:06 +01:00
struct Sprite *GetSpinningPokenavSprite(void);
void HideSpinningPokenavSprite(void);
2022-05-21 21:21:50 +02:00
void UpdateRegionMapRightHeaderTiles(u32 menuGfxId);
2020-10-11 00:17:34 +02:00
void HideMainOrSubMenuLeftHeader(u32 id, bool32 onRightSide);
void SlideMenuHeaderUp(void);
void PokenavFillPalette(u32 palIndex, u16 fillValue);
2019-08-06 02:23:56 +02:00
u32 PokenavMainMenuLoopedTaskIsActive(void);
bool32 WaitForPokenavShutdownFade(void);
2020-10-11 00:17:34 +02:00
void SetActiveMenuLoopTasks(void *func1, void *func2);
2019-08-06 02:23:56 +02:00
void ShutdownPokenav(void);
2019-04-13 22:54:05 +02:00
2021-11-12 23:13:50 +01:00
// pokenav_menu_handler.c
2020-02-05 08:47:32 +01:00
bool32 PokenavCallback_Init_MainMenuCursorOnMap(void);
bool32 PokenavCallback_Init_MainMenuCursorOnMatchCall(void);
bool32 PokenavCallback_Init_MainMenuCursorOnRibbons(void);
bool32 PokenavCallback_Init_ConditionMenu(void);
bool32 PokenavCallback_Init_ConditionSearchMenu(void);
u32 GetMenuHandlerCallback(void);
void FreeMenuHandlerSubstruct1(void);
2020-02-01 06:25:50 +01:00
int GetPokenavMenuType(void);
int GetPokenavCursorPos(void);
int GetCurrentMenuItemId(void);
2019-12-07 10:08:21 +01:00
u16 GetHelpBarTextId(void);
2019-04-13 21:46:46 +02:00
2021-11-12 23:13:50 +01:00
// pokenav_menu_handler_gfx.c
2020-02-05 08:47:32 +01:00
bool32 OpenPokenavMenuInitial(void);
bool32 OpenPokenavMenuNotInitial(void);
2020-02-01 06:25:50 +01:00
void CreateMenuHandlerLoopedTask(s32 ltIdx);
2020-02-05 08:47:32 +01:00
bool32 IsMenuHandlerLoopedTaskActive(void);
void FreeMenuHandlerSubstruct2(void);
2020-10-11 00:17:34 +02:00
void ResetBldCnt_(void);
2021-11-15 07:23:27 +01:00
// pokenav_match_call_list.c
2020-02-05 08:47:32 +01:00
bool32 PokenavCallback_Init_MatchCall(void);
u32 GetMatchCallCallback(void);
void FreeMatchCallSubstruct1(void);
2021-11-15 06:42:23 +01:00
int IsMatchCallListInitFinished(void);
2019-12-07 10:08:21 +01:00
int GetNumberRegistered(void);
2021-11-15 06:42:23 +01:00
struct PokenavMatchCallEntry *GetMatchCallList(void);
2019-12-07 10:08:21 +01:00
u16 GetMatchCallMapSec(int);
bool32 ShouldDrawRematchPokeballIcon(int index);
2022-06-01 18:41:57 +02:00
void ClearRematchPokeballIcon(u16 windowId, u32 tileOffset);
2019-12-05 21:33:36 +01:00
int GetMatchCallTrainerPic(int index);
const u8 *GetMatchCallFlavorText(int index, int textType);
2021-11-13 18:52:41 +01:00
const u8 *GetMatchCallMessageText(int index, bool8 *newRematchRequest);
2019-12-07 10:08:21 +01:00
u16 GetMatchCallOptionCursorPos(void);
2022-05-21 21:21:50 +02:00
u16 GetMatchCallOptionId(int optionId);
void BufferMatchCallNameAndDesc(struct PokenavMatchCallEntry *matchCallEntry, u8 *str);
2020-10-11 00:17:34 +02:00
u8 GetMatchTableMapSectionId(int rematchIndex);
2019-12-07 10:08:21 +01:00
int GetIndexDeltaOfNextCheckPageDown(int index);
int GetIndexDeltaOfNextCheckPageUp(int index);
2019-12-05 21:33:36 +01:00
bool32 IsRematchEntryRegistered(int index);
2021-11-15 07:23:27 +01:00
// pokenav_match_call_gfx.c
2020-02-05 08:47:32 +01:00
bool32 OpenMatchCall(void);
2020-02-01 06:25:50 +01:00
void CreateMatchCallLoopedTask(s32 index);
2020-02-05 08:47:32 +01:00
bool32 IsMatchCallLoopedTaskActive(void);
void FreeMatchCallSubstruct2(void);
2019-04-16 00:51:11 +02:00
2020-02-02 03:19:04 +01:00
// pokenav_region_map.c
2020-02-05 08:47:32 +01:00
u32 PokenavCallback_Init_RegionMap(void);
u32 GetRegionMapCallback(void);
bool32 OpenPokenavRegionMap(void);
void CreateRegionMapLoopedTask(s32);
bool32 IsRegionMapLoopedTaskActive(void);
void FreeRegionMapSubstruct1(void);
void FreeRegionMapSubstruct2(void);
2019-04-16 21:18:01 +02:00
2021-11-12 17:07:52 +01:00
// pokenav_conditions.c
2021-11-11 22:50:36 +01:00
u32 PokenavCallback_Init_ConditionGraph_Party(void);
u32 PokenavCallback_Init_ConditionGraph_Search(void);
u32 GetConditionGraphMenuCallback(void);
void FreeConditionGraphMenuSubstruct1(void);
bool32 LoadConditionGraphMenuGfx(void);
2020-10-11 00:17:34 +02:00
bool32 IsConditionMenuSearchMode(void);
2021-11-11 00:52:30 +01:00
struct ConditionGraph *GetConditionGraphPtr(void);
2021-11-11 22:50:36 +01:00
u16 GetConditionGraphCurrentListIndex(void);
2020-10-11 00:17:34 +02:00
u16 GetMonListCount(void);
2021-11-10 02:02:12 +01:00
u8 GetNumConditionMonSparkles(void);
2021-11-11 22:50:36 +01:00
bool32 LoadNextConditionMenuMonData(u8 mode);
2020-10-11 00:17:34 +02:00
u8 TryGetMonMarkId(void);
2021-11-10 02:02:12 +01:00
u8 *GetConditionMonNameText(u8 id);
u8 *GetConditionMonLocationText(u8 id);
2020-10-11 00:17:34 +02:00
u16 GetConditionMonDataBuffer(void);
void *GetConditionMonPicGfx(u8 id);
void *GetConditionMonPal(u8 id);
2019-07-24 17:02:52 +02:00
2021-11-12 17:07:52 +01:00
// pokenav_conditions_gfx.c
2021-11-11 22:50:36 +01:00
bool32 OpenConditionGraphMenu(void);
void CreateConditionGraphMenuLoopedTask(s32);
u32 IsConditionGraphMenuLoopedTaskActive(void);
void FreeConditionGraphMenuSubstruct2(void);
2020-10-11 00:17:34 +02:00
u8 GetMonMarkingsData(void);
2019-07-24 17:02:52 +02:00
2021-11-12 17:07:52 +01:00
// pokenav_conditions_search_results.c
2020-10-11 00:17:34 +02:00
u32 PokenavCallback_Init_ConditionSearch(void);
u32 PokenavCallback_Init_ReturnToMonSearchList(void);
u32 GetConditionSearchResultsCallback(void);
void FreeSearchResultSubstruct1(void);
bool32 OpenConditionSearchResults(void);
bool32 OpenConditionSearchListFromGraph(void);
void CreateSearchResultsLoopedTask(s32);
u32 IsSearchResultLoopedTaskActive(void);
void FreeSearchResultSubstruct2(void);
2019-08-06 02:23:56 +02:00
2021-11-09 18:50:35 +01:00
// pokenav_ribbons_list.c
2020-10-11 00:17:34 +02:00
u32 PokenavCallback_Init_MonRibbonList(void);
u32 PokenavCallback_Init_RibbonsMonListFromSummary(void);
u32 GetRibbonsMonListCallback(void);
2021-11-09 18:50:35 +01:00
void FreeRibbonsMonList(void);
2020-10-11 00:17:34 +02:00
bool32 OpenRibbonsMonList(void);
bool32 OpenRibbonsMonListFromRibbonsSummary(void);
void CreateRibbonsMonListLoopedTask(s32);
u32 IsRibbonsMonListLoopedTaskActive(void);
2021-11-09 18:50:35 +01:00
void FreeRibbonsMonMenu(void);
2019-08-06 02:23:56 +02:00
2021-11-09 18:50:35 +01:00
// pokenav_ribbons_summary.c
2020-10-11 00:17:34 +02:00
u32 PokenavCallback_Init_RibbonsSummaryMenu(void);
u32 GetRibbonsSummaryMenuCallback(void);
void FreeRibbonsSummaryScreen1(void);
bool32 OpenRibbonsSummaryMenu(void);
void CreateRibbonsSummaryLoopedTask(s32);
u32 IsRibbonsSummaryLoopedTaskActive(void);
void FreeRibbonsSummaryScreen2(void);
2019-08-06 02:23:56 +02:00
2019-07-24 17:02:52 +02:00
#endif // GUARD_POKENAV_H