From 7d4309970c8ed66465d40d88dbca3ac32ea73cf1 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 25 Jul 2018 19:50:44 -0700 Subject: [PATCH] Stop animation on box change slot glow can bleed into another box --- PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs | 1 + PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs index e6c9f4217..a33b4745f 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs @@ -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; diff --git a/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs b/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs index d73cfb52f..3a8c7fa2b 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs @@ -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;