summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2017-09-18 23:48:47 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2017-09-18 23:48:47 +0200
commit2e7127284f98cb4c8c02b1a41a19fdc73ed4eb79 (patch)
treecb711d29132a9ee6cbc8ce04c731e17a02b38074 /include
parentc253bf5e75796c462fe5e389c7e8f6040f826c0f (diff)
egg hatch almost decompiled
Diffstat (limited to 'include')
-rw-r--r--include/bg.h2
-rw-r--r--include/pokemon.h4
-rw-r--r--include/text.h15
3 files changed, 18 insertions, 3 deletions
diff --git a/include/bg.h b/include/bg.h
index ca21070e0..24484dd86 100644
--- a/include/bg.h
+++ b/include/bg.h
@@ -39,5 +39,7 @@ void UnsetBgTilemapBuffer(u8 bg);
void CopyToBgTilemapBuffer(u8 bg, const void *src, u16 mode, u16 destOffset);
void CopyBgTilemapBufferToVram(u8 bg);
u16 LoadBgTiles(u8 bg, const void* src, u16 size, u16 destOffset);
+void ShowBg(u8 bg);
+void HideBg(u8 bg);
#endif // GUARD_BG_H
diff --git a/include/pokemon.h b/include/pokemon.h
index fefe2bd28..3472da04b 100644
--- a/include/pokemon.h
+++ b/include/pokemon.h
@@ -614,4 +614,8 @@ bool8 IsPokeSpriteNotFlipped(u16 species);
bool8 IsMonShiny(struct Pokemon *mon);
bool8 IsShinyOtIdPersonality(u32 otId, u32 personality);
+#include "sprite.h"
+
+void DoMonFrontSpriteAnimation(struct Sprite* sprite, u16 species, bool8 noCry, u8 arg3);
+
#endif // GUARD_POKEMON_H
diff --git a/include/text.h b/include/text.h
index 5aadaac32..f584b61ea 100644
--- a/include/text.h
+++ b/include/text.h
@@ -138,17 +138,26 @@ struct FontInfo
u8 shadowColor:4;
};
-struct GlyphWidthFunc{
+struct GlyphWidthFunc
+{
u32 font_id;
u32 (*func)(u16 glyphId, bool32 isJapanese);
};
-struct KeypadIcon {
+struct KeypadIcon
+{
u16 tile_offset;
u8 width;
u8 height;
};
+struct __attribute__((packed)) TextColor
+{
+ u8 fgColor;
+ u8 bgColor;
+ u8 shadowColor;
+};
+
extern u8 gStringVar1[];
extern u8 gStringVar2[];
extern u8 gStringVar3[];
@@ -159,7 +168,7 @@ void DeactivateAllTextPrinters(void);
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);
+bool16 IsTextPrinterActive(u8 id);
u32 RenderFont(struct TextPrinter *textPrinter);
void GenerateFontHalfRowLookupTable(u8 fgColor, u8 bgColor, u8 shadowColor);
void SaveTextColors(u8 *fgColor, u8 *bgColor, u8 *shadowColor);