Exemple #1
0
 public void ResetView(ISlotViewer <T> sub)
 {
     if (Previous == null || PreviousPKM == null)
     {
         return;
     }
     ResetView(sub, Previous, PreviousType, PreviousPKM);
 }
Exemple #2
0
        public void RefreshHoverSlot(ISlotViewer <PictureBox> parent)
        {
            if (HoveredSlot == null || !parent.SlotPictureBoxes.Contains(HoveredSlot))
            {
                return;
            }

            BeginHoverSlot(HoveredSlot);
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
        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);
            }
        }
Exemple #5
0
 public SlotViewInfo(ISlotInfo slot, ISlotViewer <T> view)
 {
     Slot = slot;
     View = view;
 }
Exemple #6
0
 public void ResetView(ISlotViewer sub) => ResetView(sub, Previous, PreviousType);
Exemple #7
0
 public void ResetView(ISlotViewer <T> sub) => ResetView(sub, Previous, PreviousType, PreviousPKM);