mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-05 00:56:06 -05:00
23 lines
945 B
C
23 lines
945 B
C
#ifndef POKEPLATINUM_OV5_SCRIPT_MESSAGE_H
|
|
#define POKEPLATINUM_OV5_SCRIPT_MESSAGE_H
|
|
|
|
#include "field_script_context.h"
|
|
#include "message.h"
|
|
#include "string_template.h"
|
|
|
|
#define FIELD_MESSAGE_SENTENCE_INSTANT 0xFF
|
|
|
|
typedef struct ScriptMessageOptions {
|
|
u8 renderDelay;
|
|
u8 autoScroll;
|
|
u8 fontID;
|
|
} ScriptMessageOptions;
|
|
|
|
void ScriptMessageOptions_Init(ScriptMessageOptions *msgOptions, ScriptContext *ctx);
|
|
void ScriptMessage_Show(ScriptContext *ctx, const MessageLoader *msgLoader, u16 messageID, u8 canSkipDelay, ScriptMessageOptions *msgOptions);
|
|
void ScriptMessage_ShowInstant(ScriptContext *ctx, const MessageLoader *msgLoader, int messageID);
|
|
void ScriptMessage_ShowSentence(ScriptContext *ctx, u16 sentenceType, u16 sentenceID, u16 word1, s16 word2, u8 canSkipDelay);
|
|
void ScriptMessage_ShowTemplate(ScriptContext *ctx, StringTemplate *template, u8 bufferEntryID, u8 canSkipDelay);
|
|
|
|
#endif // POKEPLATINUM_OV5_SCRIPT_MESSAGE_H
|