@Override
	public void render() {
		minus.render();
		plus.render();
		
		if (enabled) glColor3f(1, 1, 1);
		else glColor3f(0.5f, 0.5f, 0.5f);
		
		String title = (titles[Math.round(value - min)] != null) ? titles[Math.round(value - min)] : value + "";
		
		if (rot == GuiRotation.HORIZONTAL) {
			int tx = FontAssistant.getFont(font).getWidth(title);
			int mx = width / 2 - tx / 2;
			RenderAssistant.renderText(x + ((width > -1) ? mx : 0), y + ((height > -1) ? height / 4f : 0), title, font);
		} else {
			int tx = FontAssistant.getFont(font).getWidth(title);
			int mx = width / 2 - tx / 2;
			int ty = FontAssistant.getFont(font).getHeight(title);
			int my = height / 2 - ty / 2;
			RenderAssistant.renderText(x + mx / 2, y + ((width > -1) ? my : 0), title, font);
		}
	}