don't show slider endcircle fadeout animation

This commit is contained in:
yugecin 2016-12-10 17:28:58 +01:00
parent 0132f00073
commit b76a3b366d

View File

@ -898,7 +898,7 @@ public class GameData {
// hit animation // hit animation
if (hitResult.result != HIT_MISS && ( if (hitResult.result != HIT_MISS && (
hitResult.hitResultType == null || hitResult.hitResultType == null || // null => initial slider circle
hitResult.hitResultType == HitObjectType.CIRCLE || hitResult.hitResultType == HitObjectType.CIRCLE ||
hitResult.hitResultType == HitObjectType.SLIDER_FIRST || hitResult.hitResultType == HitObjectType.SLIDER_FIRST ||
hitResult.hitResultType == HitObjectType.SLIDER_LAST)) { hitResult.hitResultType == HitObjectType.SLIDER_LAST)) {
@ -922,13 +922,15 @@ public class GameData {
hitResult.color.a = oldColorAlpha; hitResult.color.a = oldColorAlpha;
} }
// hit circles if (hitResult.hitResultType == null || hitResult.hitResultType == HitObjectType.CIRCLE) {
Image scaledHitCircle = GameImage.HITCIRCLE.getImage().getScaledCopy(scale); // hit circles
Image scaledHitCircleOverlay = GameImage.HITCIRCLE_OVERLAY.getImage().getScaledCopy(scale); Image scaledHitCircle = GameImage.HITCIRCLE.getImage().getScaledCopy(scale);
scaledHitCircle.setAlpha(alpha); Image scaledHitCircleOverlay = GameImage.HITCIRCLE_OVERLAY.getImage().getScaledCopy(scale);
scaledHitCircleOverlay.setAlpha(alpha); scaledHitCircle.setAlpha(alpha);
scaledHitCircle.drawCentered(hitResult.x, hitResult.y, hitResult.color); scaledHitCircleOverlay.setAlpha(alpha);
scaledHitCircleOverlay.drawCentered(hitResult.x, hitResult.y); scaledHitCircle.drawCentered(hitResult.x, hitResult.y, hitResult.color);
scaledHitCircleOverlay.drawCentered(hitResult.x, hitResult.y);
}
} }
} }