summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordheu <gwimminus@gmail.com>2019-07-11 05:47:57 +0800
committerdheu <gwimminus@gmail.com>2019-07-11 05:47:57 +0800
commit185cd074035c41d4550a150139b1eeb34541ace8 (patch)
treeeac97aaca6a507e754fa15124c89b14e495060bd /src
parentda593ec33d7b59af1bd125638d5271c64c11c6e7 (diff)
fix: renamed UnkTextUtil to DynamicPlaceholder versoins
Diffstat (limited to 'src')
-rw-r--r--src/diploma.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/diploma.c b/src/diploma.c
index 2fade0dcf..74343e82f 100644
--- a/src/diploma.c
+++ b/src/diploma.c
@@ -1,23 +1,23 @@
+#include "global.h"
+#include "bg.h"
#include "constants/fanfares.h"
+#include "dynamic_placeholder_text_util.h"
#include "gba/macro.h"
-#include "global.h"
#include "gpu_regs.h"
-#include "window.h"
+#include "gpu_regs.h"
#include "main.h"
+#include "malloc.h"
+#include "menu.h"
+#include "new_menu_helpers.h"
#include "overworld.h"
+#include "palette.h"
+#include "pokedex.h"
#include "scanline_effect.h"
-#include "task.h"
-#include "unk_text_util.h"
-#include "gpu_regs.h"
-#include "text.h"
-#include "bg.h"
#include "sound.h"
-#include "malloc.h"
-#include "pokedex.h"
#include "sprite.h"
-#include "palette.h"
-#include "new_menu_helpers.h"
-#include "menu.h"
+#include "task.h"
+#include "text.h"
+#include "window.h"
#include "diploma.h"
static void DiplomaBgInit(void);
@@ -232,21 +232,21 @@ static void DiplomaPrintText(void)
{
u8 arr[160];
u32 width;
- UnkTextUtil_Reset();
- UnkTextUtil_SetPtrI(0, gSaveBlock2Ptr->playerName);
+ DynamicPlaceholderTextUtil_Reset();
+ DynamicPlaceholderTextUtil_SetPlaceholderPtr(0, gSaveBlock2Ptr->playerName);
if (HasAllKantoMons())
{
- UnkTextUtil_SetPtrI(1, gUnknown_841B68F);
+ DynamicPlaceholderTextUtil_SetPlaceholderPtr(1, gUnknown_841B68F);
}
else
{
- UnkTextUtil_SetPtrI(1, gUnknown_841B698);
+ DynamicPlaceholderTextUtil_SetPlaceholderPtr(1, gUnknown_841B698);
}
FillWindowPixelBuffer(0, 0);
- UnkTextUtil_StringExpandPlaceholders(arr, gUnknown_841B60E);
+ DynamicPlaceholderTextUtil_ExpandPlaceholders(arr, gUnknown_841B60E);
width = GetStringWidth(2, arr, -1);
AddTextPrinterParameterized3(0, 2, 0x78 - (width / 2), 4, gUnknown_8415A04, -1, arr);
- UnkTextUtil_StringExpandPlaceholders(arr, gUnknown_841B619);
+ DynamicPlaceholderTextUtil_ExpandPlaceholders(arr, gUnknown_841B619);
width = GetStringWidth(2, arr, -1);
AddTextPrinterParameterized3(0, 0x2, 0x78 - (width / 2), 0x1E, gUnknown_8415A04, -1, arr);
AddTextPrinterParameterized3(0, 0x2, 0x78, 0x69, gUnknown_8415A04, 0, gUnknown_841B684);