start start menu decomp

This commit is contained in:
DizzyEggg
2017-09-05 13:01:24 +02:00
parent 54b8306115
commit 1680fc0b81
56 changed files with 675 additions and 794 deletions

18
include/menu.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef GUARD_MENU_H
#define GUARD_MENU_H
#include "text.h"
struct MenuAction
{
const u8 *text;
u8 (*func)();
};
struct MenuAction2
{
const u8 *text;
void (*func)(u8);
};
#endif // GUARD_MENU_H

20
include/safari_zone.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef GUARD_SAFARI_ZONE_H
#define GUARD_SAFARI_ZONE_H
extern u8 gNumSafariBalls;
bool32 GetSafariZoneFlag(void);
void SetSafariZoneFlag(void);
void ResetSafariZoneFlag(void);
void EnterSafariMode(void);
void ExitSafariMode(void);
bool8 SafariZoneTakeStep(void);
void SafariZoneRetirePrompt(void);
void SafariZoneGetPokeblockNameInFeeder(void);
struct Pokeblock *SafariZoneGetActivePokeblock(void);
void SafariZoneActivatePokeblockFeeder(u8 pokeblock_index);
#endif // GUARD_SAFARI_ZONE_H

6
include/start_menu.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef GUARD_START_MENU_H
#define GUARD_START_MENU_H
void AppendToList(u8* list, u8* pos, u8 newEntry);
#endif // GUARD_START_MENU_H

View File

@@ -91,7 +91,7 @@ extern u8 gStringVar4[];
void SetFontsPointer(const struct FontInfo *fonts);
void DeactivateAllTextPrinters (void);
u16 Print(u8 windowId, u8 fontId, u8 *str, u8 x, u8 y, u8 speed, void (*callback)(struct TextSubPrinter *, u16));
u16 PrintTextOnWindow(u8 windowId, u8 fontId, u8 *str, u8 x, u8 y, u8 speed, void (*callback)(struct TextSubPrinter *, u16));
bool16 AddTextPrinter(struct TextSubPrinter *textSubPrinter, u8 speed, void (*callback)(struct TextSubPrinter *, u16));
void RunTextPrinters(void);
bool8 IsTextPrinterActive(u8 id);

View File

@@ -31,7 +31,7 @@ struct Window
};
bool16 InitWindows(struct WindowTemplate *templates);
u16 AddWindow(struct WindowTemplate *template);
u16 AddWindow(const struct WindowTemplate *template);
int AddWindowWithoutTileMap(struct WindowTemplate *template);
void RemoveWindow(u8 windowId);
void FreeAllWindowBuffers(void);