diff options
author | red031000 <rubenru09@aol.com> | 2021-03-10 21:45:44 +0000 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2021-03-10 21:45:44 +0000 |
commit | 253e743399d41bd5b3a10b65308a962924563196 (patch) | |
tree | 47a81078936f4ac253df7f62f83b8ec887ee9095 /include/text.h | |
parent | 75b9be7f7c53ead5beb594e01dab4a33d6b780a3 (diff) |
AddTextPrinterParameterized
Diffstat (limited to 'include/text.h')
-rw-r--r-- | include/text.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/include/text.h b/include/text.h index fb31b86b..ca7ea133 100644 --- a/include/text.h +++ b/include/text.h @@ -6,18 +6,22 @@ struct TextPrinterTemplate { const u8* currentChar; - u8 windowId; + u32 windowId; + u8 padding[1]; u8 fontId; u8 x; u8 y; - u8 currentX; // 0x8 + u8 currentX; u8 currentY; u8 letterSpacing; u8 lineSpacing; - u8 unk:4; // 0xC - u8 fgColor:4; - u8 bgColor:4; - u8 shadowColor:4; + u8 unk; + u8 fgColor; + u8 bgColor; + u8 shadowColor; + u16 unk2; + u8 unk3; + u8 unk4; }; struct TextPrinter @@ -38,15 +42,14 @@ struct TextPrinter struct FontInfo { - u16 (*fontFunction)(struct TextPrinter *x); u8 maxLetterWidth; u8 maxLetterHeight; u8 letterSpacing; u8 lineSpacing; - u8 unk:4; - u8 fgColor:4; - u8 bgColor:4; - u8 shadowColor:4; + u8 unk; + u8 fgColor; + u8 bgColor; + u8 shadowColor; }; void SetFontsPointer(const struct FontInfo *fonts); @@ -56,5 +59,6 @@ BOOL FUN_0201BD44(u32 param0); void FUN_0201BD5C(void); u8 FUN_0201BD70(u32 param0); void FUN_0201BCFC(u32 param0); +u16 AddTextPrinterParameterized(u32 windowId, u8 fontId, const u8 *str, u32 x, u32 y, u32 speed, void (*callback)(void *, u16)); #endif //POKEDIAMOND_TEXT_H |