@Override
	public void render(float interpolation) {
		if(!isEnabled)
			return;
		int xPos = x+width/2-titledim[0]/2;
		int yPos = y+height/2-titledim[1]/2;
		
		if(isSelected)
			Renderer.drawRect(new Vector2(x,y), new Vector2(width,height), 1,  0.6f, 0.6f, 1);
		
		Fonts.get("Arial").drawString(title, xPos, yPos, 20, 0xffffff);
		
		if(!isSelected)
			return;
		int currentY = height;
		
		for(int i=0;i<values.length;i++)
		{
			boolean isBoxHovered = hoveredBox == i;
			
			Renderer.drawRect(new Vector2(x,currentY), new Vector2(subWidth, height), 1, isBoxHovered?0.6f:0.2f, isBoxHovered?0.6f:0.2f, 1);
			Renderer.drawLineRect(new Vector2(x,currentY), new Vector2(subWidth, height), 0, 0, 0, 1);
			
			Fonts.get("Arial").drawString(values[i],x+10,currentY, 20, 0xffffff);
			
			if(keyCombos[i] != null)
			{
				int keyWidth = Fonts.get("Arial").getStringDim(keyCombos[i].toString(), 20)[0];
				Fonts.get("Arial").drawString(keyCombos[i].toString(), x+subWidth-10-keyWidth, currentY, 20, 0xffffff);
			}
			
			currentY += subheight;
		}
	}