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); }
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); }
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); } }