diff --git a/Subsurface/Content/Items/Clothes/clothes.xml b/Subsurface/Content/Items/Clothes/clothes.xml
index a0b34fed0..59e3f8d2c 100644
--- a/Subsurface/Content/Items/Clothes/clothes.xml
+++ b/Subsurface/Content/Items/Clothes/clothes.xml
@@ -103,7 +103,9 @@
-
+
+
+
-
+
+
+
diff --git a/Subsurface/Content/Quests.xml b/Subsurface/Content/Quests.xml
index 666c2f833..281ca49a1 100644
--- a/Subsurface/Content/Quests.xml
+++ b/Subsurface/Content/Quests.xml
@@ -9,7 +9,7 @@
failuremessage="Retrieving the artifact failed"
successmessage="The artifact has been succesfully retrieved"
itemname="Skyholder Artifact">
-
+
-
+
-
+
-
+
=items.Length) return;
#endif
+ Rectangle containerRect = new Rectangle(rect.X - 5, rect.Y - (40 + 10) * itemCapacity - 5,
+ rect.Width + 10, rect.Height + (40 + 10) * itemCapacity + 10);
+
+ Rectangle subRect = rect;
+ subRect.Height = 40;
- Rectangle containerRect = new Rectangle(rect.X - 5, rect.Y - (rect.Height + 10) * itemCapacity - 5,
- rect.Width + 10, rect.Height + (rect.Height + 10) * itemCapacity + 10);
selectedSlot = containerRect.Contains(PlayerInput.MousePosition) ? slotIndex : -1;
+ System.Diagnostics.Debug.WriteLine(selectedSlot);
+ GUI.DrawRectangle(spriteBatch, containerRect, Color.Black*0.8f, true);
GUI.DrawRectangle(spriteBatch, containerRect, Color.White);
Item[] containedItems = null;
if (items[slotIndex] != null) containedItems = items[slotIndex].ContainedItems;
- if (containedItems == null || !containedItems.Any()) return;
-
- for (int i = 0; i < itemCapacity; i++)
+ if (containedItems != null)
{
- rect.Y = rect.Y - rect.Height - 10;
- UpdateSlot(spriteBatch, rect, selectedSlot, i < containedItems.Count() ? containedItems[i] : null, true);
+ for (int i = 0; i < itemCapacity; i++)
+ {
+ subRect.Y = subRect.Y - subRect.Height - 10;
+ UpdateSlot(spriteBatch, subRect, selectedSlot, i < containedItems.Count() ? containedItems[i] : null, true);
+ }
}
+
+
}
+
+ DrawSlot(spriteBatch, rect, (draggingItem == item && !mouseOn) ? null : item, mouseOn, isSubSlot, drawItem);
+
}
protected void DrawSlot(SpriteBatch spriteBatch, Rectangle rect, Item item, bool isHighLighted, bool isSubSlot, bool drawItem=true)
diff --git a/Subsurface_Solution.v12.suo b/Subsurface_Solution.v12.suo
index 2860880c5..0ee4a6faa 100644
Binary files a/Subsurface_Solution.v12.suo and b/Subsurface_Solution.v12.suo differ