summaryrefslogtreecommitdiff
path: root/include/text.h
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-09-23 13:50:55 -0400
committerGitHub <noreply@github.com>2017-09-23 13:50:55 -0400
commita57915fa5bd8c2e68bc291a371e66e3cafd7e195 (patch)
tree0b20aeb72cc21dbfbaf99ad08750934471cccf96 /include/text.h
parent2ad419e4b914ba17b5b3c3e60ef56726da0cf59b (diff)
parent21f668d6a574dd7df4d761148c6f02ee4cdda6f1 (diff)
Merge pull request #36 from DizzyEggg/decomp_egg_hatch
Decompile Egg Hatch
Diffstat (limited to 'include/text.h')
-rw-r--r--include/text.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/text.h b/include/text.h
index c61f6cc98..dba409f37 100644
--- a/include/text.h
+++ b/include/text.h
@@ -138,28 +138,37 @@ 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[];
extern u8 gStringVar4[];
void SetFontsPointer(const struct FontInfo *fonts);
-void DeactivateAllTextPrinters (void);
+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);