summaryrefslogtreecommitdiff
path: root/include/text.h
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2021-03-10 17:26:54 +0000
committerred031000 <rubenru09@aol.com>2021-03-10 17:26:54 +0000
commit75b9be7f7c53ead5beb594e01dab4a33d6b780a3 (patch)
tree9717d7f0821efb028e279c877be510bc0e294920 /include/text.h
parent10e6f870acce9b206280bd58b18a3269ef76447b (diff)
start of text.c
Diffstat (limited to 'include/text.h')
-rw-r--r--include/text.h56
1 files changed, 55 insertions, 1 deletions
diff --git a/include/text.h b/include/text.h
index 8b7fe896..fb31b86b 100644
--- a/include/text.h
+++ b/include/text.h
@@ -1,6 +1,60 @@
#ifndef POKEDIAMOND_TEXT_H
#define POKEDIAMOND_TEXT_H
-void GetSpeciesNameIntoArray(u16 species, u32 heap_id, u16 * dest);
+#include "global.h"
+
+struct TextPrinterTemplate
+{
+ const u8* currentChar;
+ u8 windowId;
+ u8 fontId;
+ u8 x;
+ u8 y;
+ u8 currentX; // 0x8
+ u8 currentY;
+ u8 letterSpacing;
+ u8 lineSpacing;
+ u8 unk:4; // 0xC
+ u8 fgColor:4;
+ u8 bgColor:4;
+ u8 shadowColor:4;
+};
+
+struct TextPrinter
+{
+ struct TextPrinterTemplate printerTemplate;
+
+ void (*callback)(struct TextPrinterTemplate *, u16); // 0x10
+
+ u8 subStructFields[7]; // always cast to struct TextPrinterSubStruct... so why bother
+ u8 active;
+ u8 state; // 0x1C
+ u8 textSpeed;
+ u8 delayCounter;
+ u8 scrollDistance;
+ u8 minLetterSpacing; // 0x20
+ u8 japanese;
+};
+
+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;
+};
+
+void SetFontsPointer(const struct FontInfo *fonts);
+u8 FUN_0201BCC8(void *param0, u32 param1, u32 param2);
+void FUN_0201BCFC(u32 param0);
+BOOL FUN_0201BD44(u32 param0);
+void FUN_0201BD5C(void);
+u8 FUN_0201BD70(u32 param0);
+void FUN_0201BCFC(u32 param0);
#endif //POKEDIAMOND_TEXT_H