mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-23 21:14:18 -05:00
Make slots visible after resetting
Had removed the Visible=true from the inner UpdateSlot call in the refactor; place here.
This commit is contained in:
@@ -158,10 +158,13 @@ public void ResetSlots()
|
||||
for (int i = 0; i < BoxSlotCount; i++)
|
||||
{
|
||||
var pb = SlotPictureBoxes[i];
|
||||
if (i < SAV.BoxSlotCount && index + i < SAV.SlotCount)
|
||||
SlotUtil.UpdateSlot(pb, (SlotInfoBox)GetSlotData(pb), Editor[i], SAV, FlagIllegal);
|
||||
else
|
||||
if (i >= SAV.BoxSlotCount || index + i >= SAV.SlotCount)
|
||||
{
|
||||
pb.Visible = false;
|
||||
continue;
|
||||
}
|
||||
pb.Visible = true;
|
||||
SlotUtil.UpdateSlot(pb, (SlotInfoBox) GetSlotData(pb), Editor[i], SAV, FlagIllegal);
|
||||
}
|
||||
|
||||
if (M.Env.Slots.Publisher.Previous is SlotInfoBox b && b.Box == CurrentBox)
|
||||
|
||||
Reference in New Issue
Block a user