public void update() {
		setBounds(0);
		
		int mx = Mouse.getX();
		int my = Game.screenHeight - Mouse.getY();
		
		//Exit button.
		if (mx > x + 350 && mx < x + 375 && my > y + 3 && my < y + 25 && Mouse.isButtonDown(0) && isSelected == false) {
			showInventory = false;
		}
		
		//Drag the inventory.
		if (mx > x && mx < x + 375 && my > y && my < y + 30 || isSelected) {
			
			if (Mouse.isButtonDown(0)) {
				isSelected = true;
				x += Mouse.getDX();
				y += -Mouse.getDY();
				
				if (x + 290 > Game.screenHeight) {
					x = Game.screenHeight - 290 - Mouse.getDX(); 
				}else if (x < 0) {
					x = 0;
				}else if (y + 350 > Game.screenHeight) {
					y = Game.screenHeight - 350 - Mouse.getDY();
				}else if (y < 0) {
					y = 0;
				}
				
			}else{
				isSelected = false;
				
			}
			
		}
		
	}