protected void onRender(GraphicsHelper gh) {
		Line l = new Line(xOnView(pos.x),yOnView(pos.y)+slider.y/2,xOnView(pos.x)+size.x,yOnView(pos.y)+slider.y/2);
		
		gh.g().setColor(pressed ? Color.gray : Color.darkGray);
		gh.g().draw(l);
		
		float posX = value/((float)maxValue)*(size.x-slider.x);
		Rectangle r = new Rectangle(xOnView(pos.x)+posX,yOnView(pos.y),slider.x,slider.y);
		
		gh.drawRectangleGradient(r,cBgTop.multiply(color),cBgTop.multiply(color),cBgBottom.multiply(color),cBgBottom.multiply(color));
		gh.g().setColor(cBorder.multiply(color));
		gh.g().draw(r);
		
		float mult = pressed ? cMultPress : (over ? cMultOver : 0f);
		
		if (mult != 0f) {
			gh.setBlendMode(mult > 0 ? BM_ADD : BM_SUBTRACT);
			mult = Math.abs(mult);
			gh.g().setColor(Colors.merge(Color.black,Color.white,mult).multiply(color));
			gh.g().fill(r);
			gh.setPreviousBlendMode();
		}
	}