Merge branch 'master' into summary-screen-macros
This commit is contained in:
@@ -1405,9 +1405,9 @@ static bool8 ExtractMonDataToSummaryStruct(struct Pokemon *mon)
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
GetMonData(mon, MON_DATA_OT_NAME, &sum->OTName);
|
||||
GetMonData(mon, MON_DATA_OT_NAME, sum->OTName);
|
||||
ConvertInternationalString((u8*)&sum->OTName, GetMonData(mon, MON_DATA_LANGUAGE));
|
||||
sum->ailment = GetMonAilment(mon);
|
||||
sum->ailment = sub_81B205C(mon);
|
||||
sum->OTGender = GetMonData(mon, MON_DATA_OT_GENDER);
|
||||
sum->OTID = GetMonData(mon, MON_DATA_OT_ID);
|
||||
sum->metLocation = GetMonData(mon, MON_DATA_MET_LOCATION);
|
||||
@@ -2687,7 +2687,7 @@ static void ResetWindows(void)
|
||||
|
||||
for (i = 0; i < 20; i++)
|
||||
{
|
||||
FillWindowPixelBuffer(i, 0);
|
||||
FillWindowPixelBuffer(i, PIXEL_FILL(0));
|
||||
}
|
||||
for (i = 0; i < ARRAY_COUNT(sMonSummaryScreenData->windowIds); i++)
|
||||
{
|
||||
@@ -2702,9 +2702,9 @@ static void SummaryScreen_PrintTextOnWindow(u8 windowId, const u8 *string, u8 x,
|
||||
|
||||
static void sub_81C25E8(void)
|
||||
{
|
||||
FillWindowPixelBuffer(PSS_LABEL_WINDOW_PORTRAIT_DEX_NUMBER, 0);
|
||||
FillWindowPixelBuffer(PSS_LABEL_WINDOW_PORTRAIT_NICKNAME, 0);
|
||||
FillWindowPixelBuffer(PSS_LABEL_WINDOW_PORTRAIT_SPECIES, 0);
|
||||
FillWindowPixelBuffer(PSS_LABEL_WINDOW_PORTRAIT_DEX_NUMBER, PIXEL_FILL(0));
|
||||
FillWindowPixelBuffer(PSS_LABEL_WINDOW_PORTRAIT_NICKNAME, PIXEL_FILL(0));
|
||||
FillWindowPixelBuffer(PSS_LABEL_WINDOW_PORTRAIT_SPECIES, PIXEL_FILL(0));
|
||||
if (!sMonSummaryScreenData->summary.isEgg)
|
||||
sub_81C2628();
|
||||
else
|
||||
@@ -2956,7 +2956,7 @@ static u8 AddWindowFromTemplateList(const struct WindowTemplate *template, u8 te
|
||||
if (*windowIdPtr == 0xFF)
|
||||
{
|
||||
*windowIdPtr = AddWindow(&template[templateId]);
|
||||
FillWindowPixelBuffer(*windowIdPtr, 0);
|
||||
FillWindowPixelBuffer(*windowIdPtr, PIXEL_FILL(0));
|
||||
}
|
||||
return *windowIdPtr;
|
||||
}
|
||||
@@ -2978,7 +2978,7 @@ static void PrintPageSpecificText(u8 pageIndex)
|
||||
for (i = 0; i < ARRAY_COUNT(sMonSummaryScreenData->windowIds); i++)
|
||||
{
|
||||
if (sMonSummaryScreenData->windowIds[i] != 0xFF)
|
||||
FillWindowPixelBuffer(sMonSummaryScreenData->windowIds[i], 0);
|
||||
FillWindowPixelBuffer(sMonSummaryScreenData->windowIds[i], PIXEL_FILL(0));
|
||||
}
|
||||
sTextPrinterFunctions[pageIndex]();
|
||||
}
|
||||
@@ -3527,7 +3527,7 @@ static void PrintMovePowerAndAccuracy(u16 moveIndex)
|
||||
const u8 *text;
|
||||
if (moveIndex != 0)
|
||||
{
|
||||
FillWindowPixelRect(PSS_LABEL_WINDOW_MOVES_POWER_ACC, 0, 53, 0, 19, 32);
|
||||
FillWindowPixelRect(PSS_LABEL_WINDOW_MOVES_POWER_ACC, PIXEL_FILL(0), 53, 0, 19, 32);
|
||||
|
||||
if (gBattleMoves[moveIndex].power < 2)
|
||||
{
|
||||
@@ -3625,7 +3625,7 @@ static void PrintContestMoveDescription(u8 moveSlot)
|
||||
static void PrintMoveDetails(u16 move)
|
||||
{
|
||||
u8 windowId = AddWindowFromTemplateList(sPageMovesTemplate, PSS_DATA_WINDOW_MOVE_DESCRIPTION);
|
||||
FillWindowPixelBuffer(windowId, 0);
|
||||
FillWindowPixelBuffer(windowId, PIXEL_FILL(0));
|
||||
if (move != MOVE_NONE)
|
||||
{
|
||||
if (sMonSummaryScreenData->currPageIndex == PSS_MODE_BOX)
|
||||
@@ -3677,7 +3677,7 @@ static void PrintNewMoveDetailsOrCancelText(void)
|
||||
static void sub_81C4064(void)
|
||||
{
|
||||
u8 windowId = AddWindowFromTemplateList(sPageMovesTemplate, PSS_DATA_WINDOW_MOVE_NAMES);
|
||||
FillWindowPixelRect(windowId, 0, 0, 66, 72, 16);
|
||||
FillWindowPixelRect(windowId, PIXEL_FILL(0), 0, 66, 72, 16);
|
||||
CopyWindowToVram(windowId, 2);
|
||||
}
|
||||
|
||||
@@ -3686,11 +3686,11 @@ static void sub_81C40A0(u8 moveIndex1, u8 moveIndex2)
|
||||
u8 windowId1 = AddWindowFromTemplateList(sPageMovesTemplate, PSS_DATA_WINDOW_MOVE_NAMES);
|
||||
u8 windowId2 = AddWindowFromTemplateList(sPageMovesTemplate, PSS_DATA_WINDOW_MOVE_PP);
|
||||
|
||||
FillWindowPixelRect(windowId1, 0, 0, moveIndex1 * 16, 0x48, 0x10);
|
||||
FillWindowPixelRect(windowId1, 0, 0, moveIndex2 * 16, 0x48, 0x10);
|
||||
FillWindowPixelRect(windowId1, PIXEL_FILL(0), 0, moveIndex1 * 16, 0x48, 0x10);
|
||||
FillWindowPixelRect(windowId1, PIXEL_FILL(0), 0, moveIndex2 * 16, 0x48, 0x10);
|
||||
|
||||
FillWindowPixelRect(windowId2, 0, 0, moveIndex1 * 16, 0x30, 0x10);
|
||||
FillWindowPixelRect(windowId2, 0, 0, moveIndex2 * 16, 0x30, 0x10);
|
||||
FillWindowPixelRect(windowId2, PIXEL_FILL(0), 0, moveIndex1 * 16, 0x30, 0x10);
|
||||
FillWindowPixelRect(windowId2, PIXEL_FILL(0), 0, moveIndex2 * 16, 0x30, 0x10);
|
||||
|
||||
PrintMoveNameAndPP(moveIndex1);
|
||||
PrintMoveNameAndPP(moveIndex2);
|
||||
@@ -3699,7 +3699,7 @@ static void sub_81C40A0(u8 moveIndex1, u8 moveIndex2)
|
||||
static void PrintHMMovesCantBeForgotten(void)
|
||||
{
|
||||
u8 windowId = AddWindowFromTemplateList(sPageMovesTemplate, PSS_DATA_WINDOW_MOVE_DESCRIPTION);
|
||||
FillWindowPixelBuffer(windowId, 0);
|
||||
FillWindowPixelBuffer(windowId, PIXEL_FILL(0));
|
||||
SummaryScreen_PrintTextOnWindow(windowId, gText_HMMovesCantBeForgotten2, 6, 1, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user