mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-05-16 17:04:50 -05:00
Fixes a small bug for forms sprite editing (still disabled)
This commit is contained in:
parent
22c4891537
commit
4bb8ed2cf2
|
|
@ -853,14 +853,15 @@ namespace DSPRE.Editors
|
|||
|
||||
private void LoadSprites()
|
||||
{
|
||||
nr = new NarcReader(RomInfo.gameDirs[DirNames.pokemonBattleSprites].packedDir);
|
||||
used = new bool[nr.fe.Length];
|
||||
for (int i = 0; i < nr.fe.Length; i++)
|
||||
{
|
||||
used[i] = (nr.fe[i].Size > 0);
|
||||
}
|
||||
|
||||
if (!loadingOther)
|
||||
{
|
||||
nr = new NarcReader(RomInfo.gameDirs[DirNames.pokemonBattleSprites].packedDir);
|
||||
used = new bool[nr.fe.Length];
|
||||
for (int i = 0; i < nr.fe.Length; i++)
|
||||
{
|
||||
used[i] = (nr.fe[i].Size > 0);
|
||||
}
|
||||
IndexBox.Items.Clear();
|
||||
for (int i = 0; i < pokenames.Length; i++)
|
||||
{
|
||||
|
|
@ -870,10 +871,16 @@ namespace DSPRE.Editors
|
|||
}
|
||||
else
|
||||
{
|
||||
used = new bool[nr.fe.Length];
|
||||
for (int i = 0; i < nr.fe.Length; i++)
|
||||
{
|
||||
used[i] = (nr.fe[i].Size > 0);
|
||||
}
|
||||
nr = new NarcReader(RomInfo.gameDirs[DirNames.otherPokemonBattleSprites].packedDir);
|
||||
IndexBox.Items.Clear();
|
||||
for (int i = 0; i < otherPokenames.Length; i++)
|
||||
{
|
||||
IndexBox.Items.Add(otherPokenames[i]);
|
||||
IndexBox.Items.Add(i.ToString("D3") + " " + otherPokenames[i]);
|
||||
}
|
||||
IndexBox.SelectedIndex = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user