public static void renderLine(int x, int y, int length, boolean horizontal, boolean doubled) {
		glEnable(GL_BLEND);
		bindTexture("/graphics/textures/ui/gui.png");
		
		int height = (doubled) ? 17 : 12;
		int width = length;
		int lineLength = (doubled) ? 73 : 74;
		// if (!horizontal)
		// {
		// width = height;
		// height = length;
		// }
		
		// x1 y1 x2
		// x3 y2 x4
		int[] c = (doubled) ? new int[] { 849, 155, 897 } : new int[] { 845, 363, 887 };
		
		// x1 y1
		// x2 y2
		int[] m = (doubled) ? new int[] { 893, 189 } : new int[] { 899, 398 };
		
		if (!horizontal) {
			glTranslatef(x, y, 0);
			glRotatef(-90, 0, 0, 1);
			glTranslatef(-x, -y, 0);
			glTranslatef(-width, -height, 0);
		}
		renderRect(x, y, 15, height, c[0] / 1024f, c[1] / 1024f, 15 / 1024f, height / 1024f);
		
		for (int i = 0; i < (width - 15) / lineLength; i++)
			renderRect(x + i * lineLength + 15, y, lineLength, height, m[0] / 1024f, m[1] / 1024f, lineLength / 1024f, height / 1024f);
		renderRect(	x + 15 + ((width - 30) / lineLength * lineLength), y, (width - 30) % lineLength, height, m[0] / 1024f, m[1] / 1024f, ((width - 30) % lineLength) / 1024f,
								height / 1024f);
		
		renderRect(x + width - 15, y, 15, height, c[2] / 1024f, c[1] / 1024f, 15 / 1024f, height / 1024f);
		if (!horizontal) {
			glTranslatef(width, height, 0);
			glTranslatef(x, y, 0);
			glRotatef(90, 0, 0, 1);
			glTranslatef(-x, -y, 0);
		}
		glDisable(GL_BLEND);
	}