mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:13:21 +08:00
Fix mod "Classic" interfering with DrawableHitCircle
animation while in hit state
This commit is contained in:
parent
c91031604c
commit
993cebe785
@ -85,13 +85,16 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
private void applyEarlyFading(DrawableHitCircle circle)
|
private void applyEarlyFading(DrawableHitCircle circle)
|
||||||
{
|
{
|
||||||
circle.ApplyCustomUpdateState += (o, _) =>
|
circle.ApplyCustomUpdateState += (dho, state) =>
|
||||||
{
|
{
|
||||||
using (o.BeginAbsoluteSequence(o.StateUpdateTime))
|
using (dho.BeginAbsoluteSequence(dho.StateUpdateTime))
|
||||||
{
|
{
|
||||||
double okWindow = o.HitObject.HitWindows.WindowFor(HitResult.Ok);
|
if (state != ArmedState.Hit)
|
||||||
double lateMissFadeTime = o.HitObject.HitWindows.WindowFor(HitResult.Meh) - okWindow;
|
{
|
||||||
o.Delay(okWindow).FadeOut(lateMissFadeTime);
|
double okWindow = dho.HitObject.HitWindows.WindowFor(HitResult.Ok);
|
||||||
|
double lateMissFadeTime = dho.HitObject.HitWindows.WindowFor(HitResult.Meh) - okWindow;
|
||||||
|
dho.Delay(okWindow).FadeOut(lateMissFadeTime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user