diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2023-12-22 12:56:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-22 02:56:56 -0800 |
| commit | 3fb456635bc117a2f0c6d77ce1d4a5d5f6e210f1 (patch) | |
| tree | 836466df3100cb7144e480c74db68307488f8495 /include/d/msg | |
| parent | 064f444c0f71d9b18265157343cedc39fee66784 (diff) | |
d_meter_HIO OK + misc (#2009)
Diffstat (limited to 'include/d/msg')
| -rw-r--r-- | include/d/msg/d_msg_out_font.h | 1 | ||||
| -rw-r--r-- | include/d/msg/d_msg_unit.h | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/include/d/msg/d_msg_out_font.h b/include/d/msg/d_msg_out_font.h index 5f55372c14..0abd8710bd 100644 --- a/include/d/msg/d_msg_out_font.h +++ b/include/d/msg/d_msg_out_font.h @@ -20,6 +20,7 @@ public: f32 getPosY() { return mPosY; } f32 getSizeX() { return mSizeX; } f32 getSizeY() { return mSizeY; } + u8 getAlpha() { return mAlpha; } J2DTextBox* getTextBoxPtr() { return mpTextBoxPtr; } void setTextBoxPtr(J2DTextBox* p_textBox) { mpTextBoxPtr = p_textBox; } void resetType() { mType = 0x47; } diff --git a/include/d/msg/d_msg_unit.h b/include/d/msg/d_msg_unit.h index 6466ea97f7..a3a687b06d 100644 --- a/include/d/msg/d_msg_unit.h +++ b/include/d/msg/d_msg_unit.h @@ -1,6 +1,48 @@ #ifndef D_MSG_D_MSG_UNIT_H #define D_MSG_D_MSG_UNIT_H +#include "global.h" + +// Struct definitions might be wrong +typedef struct bmg_section_t { + u32 msgType; // sectionType + u32 size; // total size of the section + u8 data[0]; // section data +} bmg_section_t; + +typedef struct bmg_header_t { + /* 0x00 */ char magic[8]; // = BMG_MAGIC + /* 0x08 */ u32 size; // total size of file + /* 0x0c */ u32 n_sections; // number of sections + /* 0x10 */ u32 encoding; // text encoding + /* 0x11 */ u8 unknown[12]; // unknown data + /* 0x20 */ bmg_section_t section[0]; // first section header +} bmg_header_t; + +typedef struct inf1_entry_t { + u32 dat1EntryOffset; + u16 startFrame; + u16 endFrame; +} inf1_entry_t; + +typedef struct inf1_section_t { + /* 0x00 */ u32 msgType; // sectionType + /* 0x04 */ u32 size; // total size of the section + /* 0x08 */ u16 entryCount; + /* 0x0A */ u16 entryLength; + /* 0x0C */ u16 msgArchiveId; + /* 0x0E */ inf1_entry_t entries[0]; +} inf1_section_t; + +typedef struct str1_entry_t { + char str[0]; +} str1_entry_t; + +typedef struct str1_section_t { + /* 0x00 */ u32 msgType; // sectionType + /* 0x04 */ u32 size; // total size of the section + /* 0x08 */ str1_entry_t entries[0]; +} str1_section_t; class dMsgUnit_c { public: |
