diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2019-04-02 13:35:52 +0200 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-04-02 16:28:38 -0500 |
commit | baa187665b102b0210ecd7296aaaf0de512d3e87 (patch) | |
tree | dda624acf585ee44f10740b20745a8aa2a489592 /src/menu.c | |
parent | 2745cdc7d26e84d7efc5349519a494610390e130 (diff) |
Document a bit of script menu and battle anims
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/menu.c b/src/menu.c index 958788b25..80d440771 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1661,16 +1661,14 @@ void CreateYesNoMenu(const struct WindowTemplate *window, u16 baseTileNum, u8 pa InitMenuInUpperLeftCornerPlaySoundWhenAPressed(sYesNoWindowId, 2, initialCursorPos); } -void sub_81997AC(u8 windowId, u8 a4, u8 a6, u8 a7, const struct MenuAction *strs) +void PrintMenuGridTable(u8 windowId, u8 optionWidth, u8 horizontalCount, u8 verticalCount, const struct MenuAction *strs) { - u32 i; - u32 j; - for (i = 0; i < a7; i++) + u32 i, j; + + for (i = 0; i < verticalCount; i++) { - for (j = 0; j < a6; j++) - { - AddTextPrinterParameterized(windowId, 1, strs[(i * a6) + j].text, (a4 * j) + 8, (i * 16) + 1, 0xFF, NULL); - } + for (j = 0; j < horizontalCount; j++) + AddTextPrinterParameterized(windowId, 1, strs[(i * horizontalCount) + j].text, (optionWidth * j) + 8, (i * 16) + 1, 0xFF, NULL); } CopyWindowToVram(windowId, 2); } |