-
Notifications
You must be signed in to change notification settings - Fork 150
Document Battle Frontier messages and message commands #896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
include/overlay104/ov104_02231F74.h
Outdated
| #include "sys_task_manager.h" | ||
|
|
||
| void ov104_02231F74(UnkStruct_ov104_022320B4 *param0, const MessageLoader *param1, u16 param2, u8 param3, UnkStruct_ov104_0222FEDC *param4); | ||
| void FrontierShowMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u16 messageID, u8 canSpeedUp, FrontierMessageOptions *param4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| void FrontierShowMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u16 messageID, u8 canSpeedUp, FrontierMessageOptions *param4); | |
| void FrontierShowMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u16 messageID, u8 canSpeedUp, FrontierMessageOptions *msgOptions); |
| u8 scrollFlags; | ||
| u8 font; | ||
| u8 unused; | ||
| } FrontierMessageOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tag struct
src/overlay104/ov104_02231F74.c
Outdated
| static void ov104_02232034(UnkStruct_ov104_022320B4 *param0, const MessageLoader *param1, u32 param2); | ||
| static void ov104_02232050(UnkStruct_ov104_022320B4 *param0, enum Font param1, int param2, int param3, int param4); | ||
| static void GetMessage(UnkStruct_ov104_022320B4 *param0, const MessageLoader *msgLoader, u32 entryID); | ||
| static void PrintMessage(UnkStruct_ov104_022320B4 *param0, enum Font param1, int param2, BOOL canSpeedUp, int param4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| static void PrintMessage(UnkStruct_ov104_022320B4 *param0, enum Font param1, int param2, BOOL canSpeedUp, int param4); | |
| static void PrintMessage(UnkStruct_ov104_022320B4 *param0, enum Font font, int param2, BOOL canSpeedUp, int autoScroll); |
| u8 unk_50; | ||
| StringTemplate *strTemplate; | ||
| String *strBuf; | ||
| String *string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd go with string and fmtString respectively since that's how these seem to be used in practice and it helps distinguish them better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I was struggling on how to name these sensibly but that makes a lot of sense.
generated/text_banks.txt
Outdated
| TEXT_BANK_UNK_0547 | ||
| TEXT_BANK_UNK_0548 | ||
| TEXT_BANK_UNK_0549 | ||
| TEXT_BANK_BATTLE_HALL_SCRIPT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how would you feel about calling these "(facility name)_scene" instead, using the term from your last pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me
src/overlay104/ov104_02231F74.c
Outdated
| if (param6 != 0xFF) { | ||
| ov104_02232050(param0, FONT_MESSAGE, param1, param6, 0); | ||
| if (canSpeedUp != 0xFF) { | ||
| PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, 0); | |
| PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, AUTO_SCROLL_DISABLED); |
src/overlay104/ov104_02231F74.c
Outdated
| PrintMessage(param0, FONT_MESSAGE, renderDelay, canSpeedUp, 0); | ||
| } else { | ||
| ov104_02232050(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, param6, 0); | ||
| PrintMessage(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, canSpeedUp, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| PrintMessage(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, canSpeedUp, 0); | |
| PrintMessage(param0, FONT_MESSAGE, TEXT_SPEED_INSTANT, canSpeedUp, AUTO_SCROLL_DISABLED); |
bad99dd to
afd0c54
Compare
No description provided.