summaryrefslogtreecommitdiff
path: root/src/battle_records.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/battle_records.c')
-rw-r--r--src/battle_records.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/battle_records.c b/src/battle_records.c
new file mode 100644
index 000000000..cf86787f0
--- /dev/null
+++ b/src/battle_records.c
@@ -0,0 +1,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);
+ }
+}