1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-25 22:09:34 +00:00
ooot/include/message_data_static.h
2022-04-13 17:00:41 -04:00

60 lines
1.7 KiB
C

#ifndef MESSAGE_DATA_STATIC_H
#define MESSAGE_DATA_STATIC_H
#include "global.h"
#include "message_data_fmt.h"
enum TextBoxType
{
/* 0 */ TEXTBOX_TYPE_BLACK,
/* 1 */ TEXTBOX_TYPE_WOODEN,
/* 2 */ TEXTBOX_TYPE_BLUE,
/* 3 */ TEXTBOX_TYPE_OCARINA,
/* 4 */ TEXTBOX_TYPE_NONE_BOTTOM,
/* 5 */ TEXTBOX_TYPE_NONE_NO_SHADOW,
/* 11 */ TEXTBOX_TYPE_CREDITS = 11
};
enum TextBoxBackground
{
/* 0 */ TEXTBOX_BG_CROSS
};
enum TextBoxPosition
{
/* 0 */ TEXTBOX_POS_VARIABLE,
/* 1 */ TEXTBOX_POS_TOP,
/* 2 */ TEXTBOX_POS_BOTTOM,
/* 3 */ TEXTBOX_POS_MIDDLE
};
struct MessageTableEntry
{
u16 textId;
u8 typePos;
const char* segment;
u32 length;
};
/*
* Message Symbol Declarations
*/
#define DEFINE_MESSAGE(textId, type, yPos, staffMessage) extern "C" const char _message_##textId##_staff[];
#include "text/message_data_staff.h"
#undef DEFINE_MESSAGE
#define DEFINE_MESSAGE(textId, type, yPos, nesMessage, gerMessage, fraMessage) \
extern "C" const char _message_##textId##_nes[]; \
extern "C" const char _message_##textId##_ger[]; \
extern "C" const char _message_##textId##_fra[];
#include "text/message_data.h"
extern "C" const char _message_0xFFFC_nes[73];
#undef DEFINE_MESSAGE
#endif