diff options
author | who-knows-who <j.williams97@outlook.com> | 2021-06-22 22:12:29 +0100 |
---|---|---|
committer | who-knows-who <j.williams97@outlook.com> | 2021-06-22 22:12:29 +0100 |
commit | cec1d428f458997fe3e4c0ac4abf0dc6b36ba699 (patch) | |
tree | f246a8956341a8f743d29c58f39a80a6ac5f865a /include/render_text.h | |
parent | 5bbef1bba183ad6654edbd0c8fc8244db38ac5c9 (diff) | |
parent | d192b6951f54d1397ded3db03b5e486ec679ac6f (diff) |
Merge branch 'master' of github.com:pret/pokediamond into 0202A1E0
Diffstat (limited to 'include/render_text.h')
-rw-r--r-- | include/render_text.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/render_text.h b/include/render_text.h new file mode 100644 index 00000000..e3e0f4c8 --- /dev/null +++ b/include/render_text.h @@ -0,0 +1,48 @@ +#ifndef POKEDIAMOND_RENDER_TEXT_H +#define POKEDIAMOND_RENDER_TEXT_H + +#include "global.h" +#include "text.h" + +typedef struct +{ + u8 canABSpeedUpPrint : 1; + u8 useAlternateDownArrow : 1; + u8 autoScroll : 1; + u8 forceMidTextSpeed : 1; + u8 unk0_4 : 1; + u8 unk0_5 : 1; + u8 unk0_6 : 1; + u8 unk0_7 : 1; + u8 unk1; +} TextFlags; + +struct TextPrinterSubStruct +{ + u8 glyphId : 4; // 0x14 + u8 hasPrintBeenSpedUp : 1; + u8 unk : 3; + u8 downArrowDelay : 5; + u8 downArrowYPosIdx : 2; + u8 hasGlyphIdBeenSet : 1; + u8 autoScrollDelay : 8; +}; + +u32 RenderText(struct TextPrinter *printer); +void FUN_02002840(u16 flag); +void TextPrinterInitDownArrowCounters(struct TextPrinter *printer); +void TextPrinterDrawDownArrow(struct TextPrinter *printer); +void TextPrinterClearDownArrow(struct TextPrinter *printer); +BOOL TextPrinterContinue(struct TextPrinter *printer); +BOOL TextPrinterWaitAutoMode(struct TextPrinter *printer); +BOOL TextPrinterWaitWithDownArrow(struct TextPrinter *printer); +u8 TextPrinterWait(struct TextPrinter *printer); +void TextFlags_SetCanABSpeedUpPrint(BOOL param0); +void FUN_02002B7C(s32 param0); +void FUN_02002BB8(u32 param0); +u8 FUN_02002BD4(); +void FUN_02002BE4(); +u8 FUN_02002BF4(); +void FUN_02002C04(); + +#endif // POKEDIAMOND_RENDER_TEXT_H |