mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-21 09:53:14 +00:00
8d8adde2b1
sealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealed
31 lines
No EOL
883 B
C#
31 lines
No EOL
883 B
C#
using PKHeX.Core;
|
|
|
|
namespace PKHeX.WinForms.Controls
|
|
{
|
|
public sealed class SlotChangeInfo<TCursor, TImageSource>
|
|
{
|
|
public bool LeftMouseIsDown { get; set; }
|
|
public bool DragDropInProgress { get; set; }
|
|
|
|
public TCursor Cursor { get; set; }
|
|
public string CurrentPath { get; set; }
|
|
|
|
public SlotViewInfo<TImageSource> Source { get; set; }
|
|
public SlotViewInfo<TImageSource> Destination { get; set; }
|
|
|
|
public SlotChangeInfo()
|
|
{
|
|
Reset();
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
LeftMouseIsDown = DragDropInProgress = false;
|
|
CurrentPath = null;
|
|
Cursor = default;
|
|
}
|
|
|
|
public bool SameLocation => Source?.Equals(Destination) ?? false;
|
|
public bool DragIsParty => Source?.Slot is SlotInfoParty || Destination?.Slot is SlotInfoParty;
|
|
}
|
|
} |