mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
11b2dc35d7
pkm editor, sav editor, menus, and a manager to glue the storage slots
together
decouples the pkm/sav editors from a static savefile reference.
improves dragdrop/click view/set/delete indication, hides unavailable
contextmenuitems, and fixes a few incorrect references. Box Subviewer
slots now have all the indication/events that the main save editor slots
have.
pls report behavior bugs 👍
18 lines
397 B
C#
18 lines
397 B
C#
using PKHeX.Core;
|
|
|
|
namespace PKHeX.WinForms
|
|
{
|
|
public class SlotChange
|
|
{
|
|
public object Parent;
|
|
|
|
public byte[] OriginalData;
|
|
public int Offset = -1;
|
|
public int Slot = -1;
|
|
public int Box = -1;
|
|
public PKM PKM;
|
|
|
|
public bool IsParty => 30 <= Slot && Slot < 36;
|
|
public bool IsValid => Slot > -1 && (Box > -1 || IsParty);
|
|
}
|
|
}
|