Updates icon in box menu
This commit is contained in:
parent
9ad505d7e8
commit
7c9a3f338a
1 changed files with 31 additions and 0 deletions
|
@ -10124,4 +10124,35 @@ void UpdateSpeciesSpritePSS(struct BoxPokemon *boxMon)
|
|||
sStorage->displayMonSpecies = species;
|
||||
sStorage->displayMonPalette = GetMonSpritePalFromSpeciesAndPersonality(species, otId, pid);
|
||||
LoadDisplayMonGfx(species, pid);
|
||||
|
||||
// Recreate icon sprite
|
||||
//DestroyPartyMonIcon(sCursorPosition);
|
||||
if (sInPartyMenu)
|
||||
{
|
||||
/*
|
||||
CreatePartyMonsSprites(TRUE);
|
||||
if (GetMonData(&boxMon, MON_DATA_HELD_ITEM) == ITEM_NONE)
|
||||
SetPartyMonIconObjMode(sCursorPosition, 1);
|
||||
else
|
||||
SetBoxMonIconObjMode(sCursorPosition, 0);
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
DestroyBoxMonIcon(sStorage->boxMonsSprites[sCursorPosition]);
|
||||
CreateBoxMonIconAtPos(sCursorPosition);
|
||||
SetBoxMonIconObjMode(sCursorPosition, GetMonData(boxMon, MON_DATA_HELD_ITEM) == ITEM_NONE);
|
||||
|
||||
}
|
||||
//
|
||||
/*
|
||||
sStorage->boxMonsSprites[sCursorPosition] = CreateMonIconSprite(sStorage->boxSpecies[sCursorPosition],
|
||||
sStorage->boxPersonalities[sCursorPosition],
|
||||
x, y, 2, subpriority
|
||||
sStorage->boxMonsSprites[sCursorPosition] = CreateMonIconSprite(species, personality, x, y, 2, 19 - (sCursorPosition % IN_BOX_COLUMNS));
|
||||
*/
|
||||
//DestroyBoxMonIcon(sStorage->partySprites[i])
|
||||
//sStorage->partySprites[0] = CreateMonIconSprite(species, personality, 104, 64, 1, 12);
|
||||
//DestroyBoxMonIconAtPosition(boxPosition);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue