Standartize AddTextPrinterParametrized functions,
This commit is contained in:
@@ -499,7 +499,7 @@ void sub_8126B80(u8 taskId)
|
||||
void sub_8126C08(void)
|
||||
{
|
||||
FillWindowPixelBuffer(0, 0x11);
|
||||
AddTextPrinterParameterized(0, 1, sSecretBasePCMenuItemDescriptions[sSecretBasePCMenuCursorPos], 0, 0, 2, 1, 3);
|
||||
AddTextPrinterParameterized2(0, 1, sSecretBasePCMenuItemDescriptions[sSecretBasePCMenuCursorPos], 0, 0, 2, 1, 3);
|
||||
}
|
||||
|
||||
void SecretBasePC_Decorate(u8 taskId)
|
||||
@@ -622,7 +622,7 @@ void sub_8126E8C(u8 taskId)
|
||||
sub_8126F68(r5, i, 8, i << 4, FALSE, 0xFF);
|
||||
}
|
||||
}
|
||||
PrintTextOnWindow(r5, 1, gTasks[taskId].data[11] == 2 ? gText_Exit : gText_Cancel, 8, (i << 4) + 1, 0, 0);
|
||||
AddTextPrinterParameterized(r5, 1, gTasks[taskId].data[11] == 2 ? gText_Exit : gText_Cancel, 8, (i << 4) + 1, 0, 0);
|
||||
schedule_bg_copy_tilemap_to_vram(0);
|
||||
}
|
||||
|
||||
@@ -636,12 +636,12 @@ void sub_8126F68(u8 winid, u8 decorCat, u8 x, u8 y, bool8 flag, u8 speed)
|
||||
sub_8127058(gStringVar4, flag);
|
||||
strbuf = StringLength(gStringVar4) + gStringVar4;
|
||||
StringCopy(strbuf, sDecorCatNames[decorCat]);
|
||||
PrintTextOnWindow(winid, 1, gStringVar4, x, y, speed, NULL);
|
||||
AddTextPrinterParameterized(winid, 1, gStringVar4, x, y, speed, NULL);
|
||||
strbuf = ConvertIntToDecimalStringN(strbuf, CountDecorationCategoryN(decorCat), STR_CONV_MODE_RIGHT_ALIGN, 2);
|
||||
*strbuf++ = CHAR_SLASH;
|
||||
ConvertIntToDecimalStringN(strbuf, gDecorationInventories[decorCat].size, STR_CONV_MODE_RIGHT_ALIGN, 2);
|
||||
x = GetStringRightAlignXOffset(1, gStringVar4, width);
|
||||
PrintTextOnWindow(winid, 1, gStringVar4, x, y, speed, NULL);
|
||||
AddTextPrinterParameterized(winid, 1, gStringVar4, x, y, speed, NULL);
|
||||
}
|
||||
|
||||
void sub_8127058(u8 *str, bool8 flag)
|
||||
@@ -932,7 +932,7 @@ void sub_8127744(u32 a0)
|
||||
{
|
||||
txt = gDecorations[gCurDecorInventoryItems[a0]].description;
|
||||
}
|
||||
PrintTextOnWindow(winidx, 1, txt, 0, 1, 0, 0);
|
||||
AddTextPrinterParameterized(winidx, 1, txt, 0, 1, 0, 0);
|
||||
}
|
||||
|
||||
void sub_81277A8(void)
|
||||
|
||||
Reference in New Issue
Block a user