mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Move lifetime adjustment to DrawableHitCircle
This commit is contained in:
parent
dd2ae3f701
commit
a4f941cdf1
@ -66,9 +66,6 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
// we don't want to see the approach circle
|
||||
circle.ApproachCircle.Hide();
|
||||
|
||||
// prolong the hitcircle long enough so misses are still possible
|
||||
circle.LifetimeEnd = circle.HitObject.StartTime + Math.Max(fadeOutDuration, circle.HitObject.HitWindowFor(HitResult.Miss));
|
||||
|
||||
// fade out immediately after fade in.
|
||||
using (drawable.BeginAbsoluteSequence(fadeInStartTime + fadeInDuration, true))
|
||||
circle.FadeOut(fadeOutDuration);
|
||||
|
@ -99,7 +99,11 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
case ArmedState.Idle:
|
||||
this.Delay(TIME_PREEMPT).FadeOut(500);
|
||||
|
||||
Expire(true);
|
||||
|
||||
// override lifetime end as FadeIn may have been changed externally, causing out expiration to be too early.
|
||||
LifetimeEnd = HitObject.StartTime + HitObject.HitWindowFor(HitResult.Miss);
|
||||
break;
|
||||
case ArmedState.Miss:
|
||||
ApproachCircle.FadeOut(50);
|
||||
|
Loading…
Reference in New Issue
Block a user