mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
Flag invalid party slots
lol oops pkmeditor pkm does not get illegal flag in the sprite, it's off to the side. remove early return which masked the underlying issue
This commit is contained in:
parent
45ab331805
commit
b4400216dc
2 changed files with 1 additions and 4 deletions
|
@ -1033,7 +1033,7 @@ namespace PKHeX.WinForms
|
|||
|
||||
if (pb == dragout) dragout.ContextMenuStrip.Enabled = pk.Species != 0 || HaX; // Species
|
||||
|
||||
pb.Image = pk.Sprite(C_SAV.SAV, -1, -1, true);
|
||||
pb.Image = pk.Sprite(C_SAV.SAV, -1, -1, flagIllegal: false);
|
||||
if (pb.BackColor == Color.Red)
|
||||
pb.BackColor = Color.Transparent;
|
||||
}
|
||||
|
|
|
@ -108,9 +108,6 @@ namespace PKHeX.WinForms
|
|||
bool inBox = slot >= 0 && slot < 30;
|
||||
var sprite = pkm.Species != 0 ? pkm.Sprite(isBoxBGRed: inBox && BoxWallpaper.IsWallpaperRed(SAV, box)) : null;
|
||||
|
||||
if (slot <= -1) // from tabs
|
||||
return sprite;
|
||||
|
||||
if (flagIllegal)
|
||||
{
|
||||
if (box >= 0)
|
||||
|
|
Loading…
Reference in a new issue