mirror of
https://github.com/pret/pokefirered.git
synced 2026-04-17 23:23:43 -05:00
51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
#ifndef GUARD_EASY_CHAT_H
|
|
#define GUARD_EASY_CHAT_H
|
|
|
|
#include "global.h"
|
|
#include "constants/easy_chat.h"
|
|
|
|
struct EasyChatWordInfo
|
|
{
|
|
const u8 *text;
|
|
int alphabeticalOrder;
|
|
int enabled;
|
|
};
|
|
|
|
typedef union
|
|
{
|
|
const u16 *valueList;
|
|
const struct EasyChatWordInfo *words;
|
|
} EasyChatGroupWordData;
|
|
|
|
struct EasyChatGroup
|
|
{
|
|
EasyChatGroupWordData wordData;
|
|
u16 numWords;
|
|
u16 numEnabledWords;
|
|
};
|
|
|
|
struct EasyChatWordsByLetter
|
|
{
|
|
const u16 *words;
|
|
int numWords;
|
|
};
|
|
|
|
void InitEasyChatPhrases(void);
|
|
u8 *CopyEasyChatWord(u8 *dest, u16 word);
|
|
u8 *ConvertEasyChatWordsToString(u8 *dest, const u16 *src, u16 length1, u16 length2);
|
|
bool8 EC_DoesEasyChatStringFitOnLine(const u16 *easyChatWords, u8 columns, u8 rows, u16 maxLength);
|
|
void EC_ResetMEventProfileMaybe(void);
|
|
void InitEasyChatPhrases(void);
|
|
void EnableRareWord(u8);
|
|
bool8 InitEasyChatSelection(void);
|
|
void DestroyEasyChatSelectionData(void);
|
|
u8 GetSelectedGroupByIndex(u8);
|
|
void GetUnlockedECWords(bool32 isAlphabetical, u16 groupId);
|
|
u16 GetDisplayedWordByIndex(u16 index);
|
|
u16 GetNumDisplayedWords(void);
|
|
const u8 *GetEasyChatWordGroupName(u8);
|
|
u8 *CopyEasyChatWordPadded(u8 *, u16, u16);
|
|
void DoEasyChatScreen(u8 type, u16 *words, MainCallback callback);
|
|
|
|
#endif // GUARD_EASY_CHAT_H
|