mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-15 06:06:04 +00:00
a6f646dc65
* Introduce assets/_extracted/VERSION, with text extracted there * move to `extracted/text/` * Update gitignore s * rework args for msgenc.py * put mkdir with others, until theyre all moved at once * move 0xFFFC back to being extracted, making it use specific macro `DEFINE_MESSAGE_NES` to handle its special behavior * prettier gitignore * Move messages 0xFFFC, 0xFFFD to committed message_data.h
58 lines
1.3 KiB
C
58 lines
1.3 KiB
C
#ifndef MESSAGE_DATA_STATIC_H
|
|
#define MESSAGE_DATA_STATIC_H
|
|
|
|
#include "global.h"
|
|
#include "message_data_fmt.h"
|
|
|
|
typedef enum {
|
|
/* 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
|
|
} TextBoxType;
|
|
|
|
typedef enum {
|
|
/* 0 */ TEXTBOX_BG_CROSS
|
|
} TextBoxBackground;
|
|
|
|
typedef enum {
|
|
/* 0 */ TEXTBOX_POS_VARIABLE,
|
|
/* 1 */ TEXTBOX_POS_TOP,
|
|
/* 2 */ TEXTBOX_POS_MIDDLE,
|
|
/* 3 */ TEXTBOX_POS_BOTTOM
|
|
} TextBoxPosition;
|
|
|
|
typedef struct {
|
|
u16 textId;
|
|
u8 typePos;
|
|
const char* segment;
|
|
} MessageTableEntry;
|
|
|
|
/*
|
|
* Message Symbol Declarations
|
|
*/
|
|
|
|
#define DEFINE_MESSAGE(textId, type, yPos, staffMessage) \
|
|
extern const char _message_##textId##_staff[];
|
|
|
|
#include "assets/text/message_data_staff.h"
|
|
|
|
#undef DEFINE_MESSAGE
|
|
|
|
#define DEFINE_MESSAGE(textId, type, yPos, nesMessage, gerMessage, fraMessage) \
|
|
extern const char _message_##textId##_nes[]; \
|
|
extern const char _message_##textId##_ger[]; \
|
|
extern const char _message_##textId##_fra[];
|
|
|
|
#define DEFINE_MESSAGE_NES(textId, type, yPos, nesMessage) \
|
|
extern const char _message_##textId##_nes[];
|
|
|
|
#include "assets/text/message_data.h"
|
|
|
|
#undef DEFINE_MESSAGE
|
|
#undef DEFINE_MESSAGE_NES
|
|
|
|
#endif
|