Example #1
0
        public void NotifySlotChanged(ISlotInfo slot, SlotTouchType type, PKM pkm)
        {
            int index = GetViewIndex(slot);

            if (index < 0)
            {
                return;
            }

            var pb = SlotPictureBoxes[index];

            SlotUtil.UpdateSlot(pb, slot, pkm, SAV, FlagIllegal, type);
        }
Example #2
0
        public void NotifySlotChanged(ISlotInfo slot, SlotTouchType type, PKM pkm)
        {
            if (!(slot is SlotInfoMisc m))
            {
                return;
            }
            var index = GetViewIndex(m);

            if (index < 0)
            {
                return;
            }
            var pb = slots[index];

            SlotUtil.UpdateSlot(pb, slot, pkm, SAV, FlagIllegal, type);
        }
Example #3
0
        public void ResetSlots()
        {
            //pokeGrid1.SetBackground(SAV.WallpaperImage(0));
            M.Hover.Stop();

            foreach (var pb in SlotPictureBoxes)
            {
                var slot = (SlotInfoParty)GetSlotData(pb);
                SlotUtil.UpdateSlot(pb, slot, slot.Read(SAV), SAV, FlagIllegal);
            }

            if (M.Env.Slots.Publisher.Previous is SlotInfoParty p)
            {
                SlotPictureBoxes[p.Slot].BackgroundImage = SlotUtil.GetTouchTypeBackground(M.Env.Slots.Publisher.PreviousType);
            }
        }