mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 08:32:54 +08:00
Fix slider end circles not remaining for long enough when hit animations disabled
This commit is contained in:
parent
2d4a3aa4f9
commit
e7b80167cd
@ -382,6 +382,19 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
repeat.SuppressHitAnimations();
|
||||
|
||||
TailCircle.SuppressHitAnimations();
|
||||
|
||||
// This method is called every frame in editor contexts, thus the lack of need for transforms.
|
||||
|
||||
if (Time.Current >= HitStateUpdateTime)
|
||||
{
|
||||
// Apply the slider's alpha to *only* the body.
|
||||
// This allows start and – more importantly – end circles to fade slower than the overall slider.
|
||||
if (Alpha < 1)
|
||||
Body.Alpha = Alpha;
|
||||
Alpha = 1;
|
||||
}
|
||||
|
||||
LifetimeEnd = HitStateUpdateTime + 700;
|
||||
}
|
||||
|
||||
internal void RestoreHitAnimations()
|
||||
|
Loading…
Reference in New Issue
Block a user