mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-07-31 23:24:08 -05:00
Small doc on sub_0205DA1C local variables
This commit is contained in:
parent
7d48bf4d43
commit
cd792aca3d
|
|
@ -12,7 +12,7 @@ void FieldMessaage_FillWindowTilemap(Window *window);
|
|||
u8 FieldMessage_Print(Window *window, Strbuf *strBuf, const Options *options, u8 canSkipDelay);
|
||||
u8 FieldMessage_PrintWithParams(Window *window, Strbuf *strBuf, int fontID, int renderDelay, u8 canSkipDelay, BOOL autoScroll);
|
||||
u8 FieldMessage_FinishedPrinting(u8 printerID);
|
||||
void sub_0205DA1C(BgConfig *bgConfig, Window *param1, u16 param2, u16 param3);
|
||||
void sub_0205DA1C(BgConfig *bgConfig, Window *window, u16 param2, u16 param3);
|
||||
void sub_0205DA80(Window *window, u16 param1, u16 param2);
|
||||
|
||||
#endif // POKEPLATINUM_UNK_0205D8CC_H
|
||||
|
|
|
|||
|
|
@ -70,22 +70,23 @@ u8 FieldMessage_FinishedPrinting(u8 printerID)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
void sub_0205DA1C(BgConfig *bgConfig, Window *param1, u16 param2, u16 param3)
|
||||
// used only in one instance
|
||||
void sub_0205DA1C(BgConfig *bgConfig, Window *window, u16 param2, u16 param3)
|
||||
{
|
||||
u16 v0, v1;
|
||||
u16 tilemapLeft, width;
|
||||
|
||||
if ((param2 == 0) || (param2 == 1)) {
|
||||
v0 = 9;
|
||||
v1 = 20;
|
||||
tilemapLeft = 9;
|
||||
width = 20;
|
||||
} else {
|
||||
v0 = 2;
|
||||
v1 = 27;
|
||||
tilemapLeft = 2;
|
||||
width = 27;
|
||||
}
|
||||
|
||||
if (param3 == 3) {
|
||||
Window_Add(bgConfig, param1, 3, v0, 19, v1, 4, 9, (((1024 - (18 + 12) - 9 - (32 * 8)) - (18 + 12 + 24)) - (27 * 4)));
|
||||
Window_Add(bgConfig, window, 3, tilemapLeft, 19, width, 4, 9, (((1024 - (18 + 12) - 9 - (32 * 8)) - (18 + 12 + 24)) - (27 * 4)));
|
||||
} else {
|
||||
Window_Add(bgConfig, param1, 7, v0, 19, v1, 4, 9, (512 - (27 * 4)));
|
||||
Window_Add(bgConfig, window, 7, tilemapLeft, 19, width, 4, 9, (512 - (27 * 4)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user