summaryrefslogtreecommitdiff
path: root/src/battle_records.c
blob: cf86787f03dbbd4ce5486e74604bd30ee6817ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "global.h"
#include "battle_records.h"
#include "menu.h"
#include "strings2.h"

void ShowLinkBattleRecords(void) {
    s32 i;
    MenuDrawTextWindow(1, 0, 28, 18);
    sub_8072BD8((u8 *) gOtherText_BattleResults, 0, 1, 240);

    PrintLinkBattleWinsLossesDraws(gSaveBlock1.linkBattleRecords);
#if ENGLISH
    MenuPrint(gOtherText_WinLoseDraw, 12, 6);
#elif GERMAN
    MenuPrint_PixelCoords((u8 *) gOtherText_WinLoseDraw, 88, 48, 1);
#endif

    for (i = 0; i < 5; i++)
    {
        PrintLinkBattleRecord(gSaveBlock1.linkBattleRecords[i], 6 + (i + 1) * 2);
    }
}