public void ResetView(ISlotViewer <T> sub) { if (Previous == null || PreviousPKM == null) { return; } ResetView(sub, Previous, PreviousType, PreviousPKM); }
public void RefreshHoverSlot(ISlotViewer <PictureBox> parent) { if (HoveredSlot == null || !parent.SlotPictureBoxes.Contains(HoveredSlot)) { return; } BeginHoverSlot(HoveredSlot); }
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); } }
public SlotViewInfo(ISlotInfo slot, ISlotViewer <T> view) { Slot = slot; View = view; }
public void ResetView(ISlotViewer sub) => ResetView(sub, Previous, PreviousType);
public void ResetView(ISlotViewer <T> sub) => ResetView(sub, Previous, PreviousType, PreviousPKM);