fix shrinking sliders for fallback sliders
This commit is contained in:
parent
7e82b05a56
commit
d5296d51fa
|
@ -416,7 +416,10 @@ public class Slider extends GameObject {
|
|||
}
|
||||
game.setSlidercurveTo(baseSliderFrom + (int) (curveIntervalTo * curve.getCurvePoints().length));
|
||||
} else {
|
||||
if (Options.isShrinkingSliders() && curveIntervalFrom > 0) {
|
||||
if (Options.isFallbackSliders() && curveIntervalFrom > 0 && repeats % 2 == 0) {
|
||||
curve.draw(curveColor, 1f - curveIntervalTo, 1f - curveIntervalFrom);
|
||||
} else {
|
||||
if (Options.isShrinkingSliders() && curveIntervalFrom > 0 && !Options.isFallbackSliders()) {
|
||||
int curvelen = curve.getCurvePoints().length;
|
||||
if (repeats % 2 == 0) {
|
||||
curve.splice((int) ((1f - curveIntervalFrom) * curvelen), curvelen);
|
||||
|
@ -425,6 +428,7 @@ public class Slider extends GameObject {
|
|||
}
|
||||
curve.draw(curveColor, curveIntervalFrom, curveIntervalTo);
|
||||
}
|
||||
}
|
||||
return curveIntervalTo == 1f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user