From 3ca26531976231d579b85d907562f964717fb280 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 18 Dec 2016 16:41:52 +0100 Subject: [PATCH] adjust the slider circles alpha when hidden mod is enabled --- src/itdelatrisu/opsu/objects/Slider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/itdelatrisu/opsu/objects/Slider.java b/src/itdelatrisu/opsu/objects/Slider.java index 2d71421b..2258204c 100644 --- a/src/itdelatrisu/opsu/objects/Slider.java +++ b/src/itdelatrisu/opsu/objects/Slider.java @@ -213,11 +213,11 @@ public class Slider implements GameObject { if (currentRepeats == 0) { if (Options.isSliderSnaking()) { // fade in end circle using decorationsAlpha when snaking sliders are enabled - circleColor.a = overlayColor.a = decorationsAlpha; + circleColor.a = overlayColor.a = sliderAlpha * decorationsAlpha; } } else { // fade in end circle after repeats - circleColor.a = overlayColor.a = getCircleAlphaAfterRepeat(trackPosition, true); + circleColor.a = overlayColor.a = sliderAlpha * getCircleAlphaAfterRepeat(trackPosition, true); } Vec2f endCircPos = curve.pointAt(curveInterval); hitCircle.drawCentered(endCircPos.x, endCircPos.y, circleColor); @@ -229,7 +229,7 @@ public class Slider implements GameObject { Color startCircleOverlayColor = new Color(Colors.WHITE_FADE); if (sliderClickedInitial) { // fade in first circle after repeats - firstCircleColor.a = startCircleOverlayColor.a = getCircleAlphaAfterRepeat(trackPosition, false); + firstCircleColor.a = startCircleOverlayColor.a = sliderAlpha * getCircleAlphaAfterRepeat(trackPosition, false); } // start circle, only draw if ball still has to go there