Document easy chat screen types

This commit is contained in:
Marcus Huderle
2019-02-27 12:45:31 -06:00
committed by huderlem
parent 231355f84d
commit 4b9e93850c
22 changed files with 963 additions and 927 deletions

View File

@@ -6,11 +6,11 @@
struct EasyChatScreenTemplate
{
u8 unk_00;
u8 type;
u8 numColumns;
u8 numRows;
u8 unk_03_0:7;
u8 unk_03_7:1;
u8 frameId:7;
u8 fourFooterOptions:1;
const u8 *titleText;
const u8 *instructionsText1;
const u8 *instructionsText2;
@@ -20,7 +20,7 @@ struct EasyChatScreenTemplate
struct EasyChatScreen
{
/*0x00*/ u8 kind;
/*0x00*/ u8 type;
/*0x01*/ u8 templateId;
/*0x02*/ u8 numColumns;
/*0x03*/ u8 numRows;
@@ -28,7 +28,7 @@ struct EasyChatScreen
/*0x05*/ s8 mainCursorColumn;
/*0x06*/ s8 mainCursorRow;
/*0x07*/ u8 unk_07;
/*0x08*/ u8 unk_08;
/*0x08*/ u8 stateBackup;
/*0x09*/ u8 unk_09;
/*0x0A*/ s8 unk_0a;
/*0x0B*/ s8 unk_0b;
@@ -38,7 +38,7 @@ struct EasyChatScreen
/*0x0F*/ u8 unk_0f;
/*0x10*/ s8 unk_10;
/*0x11*/ s8 unk_11;
/*0x12*/ u8 sizeParam;
/*0x12*/ u8 displayedPersonType;
/*0x13*/ u8 unk_13;
/*0x14*/ u8 unk_14[0x20];
/*0x34*/ const u8 *titleText;
@@ -75,13 +75,13 @@ struct Unk203A11C
u16 unkB00[BG_SCREEN_SIZE / 2];
};
struct Unk08597C30
struct EasyChatPhraseFrameDimensions
{
u8 unk0_0:5;
u8 unk0_5:3;
u8 unk1;
u8 unk2;
u8 unk3;
u8 left:5;
u8 top:3;
u8 width;
u8 height;
u8 footerId;
};
struct EasyChatWordInfo
@@ -122,7 +122,7 @@ struct EasyChatWordsByLetter
};
void InitEasyChatPhrases(void);
void easy_chat_input_maybe(void);
void ShowEasyChatScreen(void);
u8 * CopyEasyChatWord(u8 *dest, u16 word);
bool32 sub_811F8D8(int word);
void InitializeEasyChatWordArray(u16 *words, u16 length);
@@ -132,7 +132,7 @@ u16 sub_811EE38(u16 group);
u16 sub_811F01C(void);
u16 EasyChat_GetNumWordsInGroup(u8);
u16 sub_811EE90(u16);
void sub_811A20C(u8 kind, u16 *words, MainCallback callback, u8 sizeParam);
void DoEasyChatScreen(u8 type, u16 *words, MainCallback callback, u8 displayedPersonType);
void sub_811F8BC(void);
#endif // GUARD_EASYCHAT_H