first attempt at merging sliders

This commit is contained in:
yugecin
2016-12-03 18:39:20 +01:00
parent fd39b69cbf
commit 89245d9976
4 changed files with 80 additions and 4 deletions

View File

@@ -220,7 +220,7 @@ public class Slider extends GameObject {
curveColor.a = curveAlpha;
float curveInterval = Options.isSliderSnaking() ? alpha : 1f;
curve.draw(curveColor, curveInterval);
//curve.draw(curveColor, curveInterval);
color.a = alpha;
g.pushTransform();

View File

@@ -62,6 +62,10 @@ public abstract class Curve {
/** Points along the curve (set by inherited classes). */
protected Vec2f[] curve;
public Vec2f[] getCurvePoints() {
return curve;
}
private Color fallbackSliderColor = new Color(20, 20, 20);
/**