Add COPYWIN constants
This commit is contained in:
+7
-7
@@ -754,7 +754,7 @@ static void RenderPartyMenuBox(u8 slot)
|
||||
LoadPartyBoxPalette(&sPartyMenuBoxes[slot], PARTY_PAL_NO_MON);
|
||||
else
|
||||
LoadPartyBoxPalette(&sPartyMenuBoxes[slot], PARTY_PAL_MULTI_ALT);
|
||||
CopyWindowToVram(sPartyMenuBoxes[slot].windowId, 2);
|
||||
CopyWindowToVram(sPartyMenuBoxes[slot].windowId, COPYWIN_GFX);
|
||||
PutWindowTilemap(sPartyMenuBoxes[slot].windowId);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
}
|
||||
@@ -764,7 +764,7 @@ static void RenderPartyMenuBox(u8 slot)
|
||||
{
|
||||
DrawEmptySlot(sPartyMenuBoxes[slot].windowId);
|
||||
LoadPartyBoxPalette(&sPartyMenuBoxes[slot], PARTY_PAL_NO_MON);
|
||||
CopyWindowToVram(sPartyMenuBoxes[slot].windowId, 2);
|
||||
CopyWindowToVram(sPartyMenuBoxes[slot].windowId, COPYWIN_GFX);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2038,7 +2038,7 @@ static void CreateCancelConfirmWindows(bool8 chooseHalf)
|
||||
mainOffset = GetStringCenterAlignXOffset(FONT_SMALL, gMenuText_Confirm, 48);
|
||||
AddTextPrinterParameterized4(confirmWindowId, FONT_SMALL, mainOffset, 1, 0, 0, sFontColorTable[0], -1, gMenuText_Confirm);
|
||||
PutWindowTilemap(confirmWindowId);
|
||||
CopyWindowToVram(confirmWindowId, 2);
|
||||
CopyWindowToVram(confirmWindowId, COPYWIN_GFX);
|
||||
cancelWindowId = AddWindow(&sMultiCancelButtonWindowTemplate);
|
||||
offset = 0;
|
||||
}
|
||||
@@ -2061,7 +2061,7 @@ static void CreateCancelConfirmWindows(bool8 chooseHalf)
|
||||
AddTextPrinterParameterized3(cancelWindowId, FONT_SMALL, mainOffset + offset, 1, sFontColorTable[0], -1, gText_Cancel2);
|
||||
}
|
||||
PutWindowTilemap(cancelWindowId);
|
||||
CopyWindowToVram(cancelWindowId, 2);
|
||||
CopyWindowToVram(cancelWindowId, COPYWIN_GFX);
|
||||
ScheduleBgCopyTilemapToVram(0);
|
||||
}
|
||||
}
|
||||
@@ -2354,7 +2354,7 @@ static void DisplayPartyPokemonHPBar(u16 hp, u16 maxhp, struct PartyMenuBox *men
|
||||
FillWindowPixelRect(menuBox->windowId, 0x0D, menuBox->infoRects->dimensions[20] + hpFraction, menuBox->infoRects->dimensions[21], menuBox->infoRects->dimensions[22] - hpFraction, 1);
|
||||
FillWindowPixelRect(menuBox->windowId, 0x02, menuBox->infoRects->dimensions[20] + hpFraction, menuBox->infoRects->dimensions[21] + 1, menuBox->infoRects->dimensions[22] - hpFraction, 2);
|
||||
}
|
||||
CopyWindowToVram(menuBox->windowId, 2);
|
||||
CopyWindowToVram(menuBox->windowId, COPYWIN_GFX);
|
||||
}
|
||||
|
||||
static void DisplayPartyPokemonDescriptionText(u8 stringID, struct PartyMenuBox *menuBox, u8 c)
|
||||
@@ -4954,7 +4954,7 @@ static void DisplayLevelUpStatsPg1(u8 taskId)
|
||||
|
||||
arrayPtr[12] = CreateLevelUpStatsWindow();
|
||||
DrawLevelUpWindowPg1(arrayPtr[12], arrayPtr, &arrayPtr[6], TEXT_COLOR_WHITE, TEXT_COLOR_DARK_GRAY, TEXT_COLOR_LIGHT_GRAY);
|
||||
CopyWindowToVram(arrayPtr[12], 2);
|
||||
CopyWindowToVram(arrayPtr[12], COPYWIN_GFX);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
}
|
||||
|
||||
@@ -4963,7 +4963,7 @@ static void DisplayLevelUpStatsPg2(u8 taskId)
|
||||
s16 *arrayPtr = sPartyMenuInternal->data;
|
||||
|
||||
DrawLevelUpWindowPg2(arrayPtr[12], &arrayPtr[6], TEXT_COLOR_WHITE, TEXT_COLOR_DARK_GRAY, TEXT_COLOR_LIGHT_GRAY);
|
||||
CopyWindowToVram(arrayPtr[12], 2);
|
||||
CopyWindowToVram(arrayPtr[12], COPYWIN_GFX);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user