public void onMouseEvent(int mx, int my, int buttonPressed, boolean released)
	{
		if(buttonPressed == -1)
		{
			amountScrolled+=Mouse.getEventDWheel()/10;
		}
		if(slots != null)
		{
			int slotIndex = 0;
			float slotX = x;
			float slotY = y-amountScrolled;
			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.onMouseEvent(slotIndex, slotX, slotY, mx, my, buttonPressed, released, selectedIndex == i);
				slotIndex++;
				slotY+=slot.h-2;
			}
		}
	}