public void renderOverlay(int mx, int my, boolean[] buttons)
	{
		super.renderOverlay(mx, my, buttons);
		float slotX = x;
		float slotY = y-amountScrolled;
		if(slots != null)
		{
			int slotIndex = 0;
			for(int i = slots.length-1;i>=0;i--)
			{
				UISlot slot = slots[i];
				if(slot == null)
					continue;
				if(slotY < y+h && slotY+slot.h > y)
				slot.renderSlotOverlay(slotIndex, slotX, slotY, mx, my, buttons, selectedIndex == i);
				slotIndex++;
				slotY+=slot.h-2;
			}
		}
	}