private void ResetView(ISlotViewer <T> sub, ISlotInfo slot, SlotTouchType type, PKM pkm) { if (PreviousPKM != null) { sub.NotifySlotOld(Previous); } if (!(slot is SlotInfoBox b) || sub.ViewIndex == b.Box) { sub.NotifySlotChanged(slot, type, pkm); } }
private void ResetView(ISlotViewer sub, SlotChange slot, SlotTouchType type) { if (Previous != null) { sub.NotifySlotOld(Previous); } int index = sub.ViewIndex; if (index == slot.Box) { sub.NotifySlotChanged(slot, type); } }