Standartize AddTextPrinterParametrized functions,
This commit is contained in:
@@ -371,7 +371,7 @@ static void InitItemStorageMenu(u8 taskId, u8 var)
|
||||
static void ItemStorageMenuPrint(const u8 *textPtr)
|
||||
{
|
||||
NewMenuHelpers_DrawDialogueFrame(0, 0);
|
||||
PrintTextOnWindow(0, 1, textPtr, 0, 1, 0, 0);
|
||||
AddTextPrinterParameterized(0, 1, textPtr, 0, 1, 0, 0);
|
||||
}
|
||||
|
||||
static void ItemStorageMenuProcessInput(u8 taskId)
|
||||
@@ -544,7 +544,7 @@ static void Mailbox_DrawMailboxMenu(u8 taskId)
|
||||
|
||||
windowId = sub_81D1C84(0);
|
||||
sub_81D1C84(1);
|
||||
PrintTextOnWindow(windowId, 1, gText_Mailbox, GetStringCenterAlignXOffset(1, gText_Mailbox, 0x40), 1, 0, NULL);
|
||||
AddTextPrinterParameterized(windowId, 1, gText_Mailbox, GetStringCenterAlignXOffset(1, gText_Mailbox, 0x40), 1, 0, NULL);
|
||||
schedule_bg_copy_tilemap_to_vram(0);
|
||||
gTasks[taskId].data[5] = sub_81D1DC0(&playerPCItemPageInfo);
|
||||
sub_81D1E90(&playerPCItemPageInfo);
|
||||
@@ -883,7 +883,7 @@ static void fish4_goto_x5_or_x6(u8 windowId, s32 id, u8 yOffset)
|
||||
}
|
||||
ConvertIntToDecimalStringN(gStringVar1, gSaveBlock1Ptr->pcItems[id].quantity, STR_CONV_MODE_RIGHT_ALIGN, 3);
|
||||
StringExpandPlaceholders(gStringVar4, gText_xVar1);
|
||||
PrintTextOnWindow(windowId, 7, gStringVar4, GetStringRightAlignXOffset(7, gStringVar4, 104), yOffset, 0xFF, NULL);
|
||||
AddTextPrinterParameterized(windowId, 7, gStringVar4, GetStringRightAlignXOffset(7, gStringVar4, 104), yOffset, 0xFF, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -897,7 +897,7 @@ static void sub_816BEF0(s32 id)
|
||||
else
|
||||
description = ItemStorage_GetItemPcResponse(ITEMPC_GO_BACK_TO_PREV);
|
||||
FillWindowPixelBuffer(windowId, 17);
|
||||
PrintTextOnWindow(windowId, 1, description, 0, 1, 0, NULL);
|
||||
AddTextPrinterParameterized(windowId, 1, description, 0, 1, 0, NULL);
|
||||
}
|
||||
|
||||
static void ItemStorage_StartScrollIndicator(void)
|
||||
@@ -926,7 +926,7 @@ static void sub_816BFE0(u8 y, u8 b, u8 speed)
|
||||
if(b == 0xFF)
|
||||
FillWindowPixelRect(windowId, 17, 0, y, GetMenuCursorDimensionByFont(1, 0), GetMenuCursorDimensionByFont(1, 1));
|
||||
else
|
||||
AddTextPrinterParameterized2(windowId, 1, 0, y, 0, 0, gUnknown_085DFF8C, speed, gText_SelectorArrow2);
|
||||
AddTextPrinterParameterized4(windowId, 1, 0, y, 0, 0, gUnknown_085DFF8C, speed, gText_SelectorArrow2);
|
||||
}
|
||||
|
||||
static void sub_816C060(u16 itemId)
|
||||
@@ -988,7 +988,7 @@ static void ItemStorage_ProcessWithdrawTossInput(u8 taskId)
|
||||
if(!toss)
|
||||
text = gText_WithdrawItem;
|
||||
x = GetStringCenterAlignXOffset(1, text, 104);
|
||||
PrintTextOnWindow(gUnknown_0203BCC4->windowIds[3], 1, text, x, 1, 0, NULL);
|
||||
AddTextPrinterParameterized(gUnknown_0203BCC4->windowIds[3], 1, text, x, 1, 0, NULL);
|
||||
CopyWindowToVram(gUnknown_0203BCC4->windowIds[2], 2);
|
||||
sub_816C110();
|
||||
sub_816C140();
|
||||
@@ -1044,7 +1044,7 @@ static void ItemStorage_PrintItemPcResponse(const u8 *string)
|
||||
u8 windowId = gUnknown_0203BCC4->windowIds[1];
|
||||
FillWindowPixelBuffer(windowId, 0x11);
|
||||
StringExpandPlaceholders(gStringVar4, string);
|
||||
PrintTextOnWindow(windowId, 1, gStringVar4, 0, 1, 0, NULL);
|
||||
AddTextPrinterParameterized(windowId, 1, gStringVar4, 0, 1, 0, NULL);
|
||||
}
|
||||
|
||||
static void ItemStorage_ProcessInput(u8 taskId)
|
||||
@@ -1202,7 +1202,7 @@ static void sub_816C6BC(u8 windowId, u16 value, u32 mode, u8 x, u8 y, u8 n)
|
||||
{
|
||||
ConvertIntToDecimalStringN(gStringVar1, value, mode, n);
|
||||
StringExpandPlaceholders(gStringVar4, gText_xVar1);
|
||||
PrintTextOnWindow(windowId, 1, gStringVar4, GetStringCenterAlignXOffset(1, gStringVar4, 48), y, 0, NULL);
|
||||
AddTextPrinterParameterized(windowId, 1, gStringVar4, GetStringCenterAlignXOffset(1, gStringVar4, 48), y, 0, NULL);
|
||||
}
|
||||
|
||||
static void ItemStorage_DoItemAction(u8 taskId)
|
||||
|
||||
Reference in New Issue
Block a user