first attemt at shrinking sliders

This commit is contained in:
yugecin
2016-12-03 18:18:18 +01:00
parent fd39b69cbf
commit 08834471fc
3 changed files with 29 additions and 21 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, Math.max(0, (trackPosition - getTime()) / sliderTimeTotal), curveInterval);
color.a = alpha;
g.pushTransform();