Stop animation on box change

slot glow can bleed into another box
This commit is contained in:
Kurt
2018-07-25 19:50:44 -07:00
parent f0fc4b0693
commit 7d4309970c
2 changed files with 2 additions and 1 deletions

View File

@@ -153,6 +153,7 @@ public void ResetSlots()
int boxoffset = SAV.GetBoxOffset(box);
int boxbgval = SAV.GetBoxWallpaper(box);
PAN_Box.BackgroundImage = SAV.WallpaperImage(boxbgval);
M?.HoverWorker?.Stop();
int slot = M?.ColorizedBox == box ? M.ColorizedSlot : -1;

View File

@@ -28,7 +28,7 @@ public sealed class SlotChangeManager : IDisposable
public bool GlowHover { get; set; } = true;
public Color GlowInitial { get; set; } = Color.White;
public Color GlowFinal { get; set; } = Color.LightSkyBlue;
private BitmapAnimator HoverWorker;
public BitmapAnimator HoverWorker;
private SaveFile SAV => SE.SAV;
public SlotChangeInfo DragInfo;