mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 21:23:22 +08:00
Merge branch 'master' into fix-legacy-combo-counter-depth
This commit is contained in:
commit
95902dfb8e
@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
{
|
{
|
||||||
// if a taiko skin is providing explosion sprites, hide the judgements completely
|
// if a taiko skin is providing explosion sprites, hide the judgements completely
|
||||||
if (hasExplosion.Value)
|
if (hasExplosion.Value)
|
||||||
return Drawable.Empty();
|
return Drawable.Empty().With(d => d.Expire());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(component is TaikoSkinComponent taikoComponent))
|
if (!(component is TaikoSkinComponent taikoComponent))
|
||||||
@ -118,7 +118,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
// suppress the default kiai explosion if the skin brings its own sprites.
|
// suppress the default kiai explosion if the skin brings its own sprites.
|
||||||
// the drawable needs to expire as soon as possible to avoid accumulating empty drawables on the playfield.
|
// the drawable needs to expire as soon as possible to avoid accumulating empty drawables on the playfield.
|
||||||
if (hasExplosion.Value)
|
if (hasExplosion.Value)
|
||||||
return Drawable.Empty().With(d => d.LifetimeEnd = double.MinValue);
|
return Drawable.Empty().With(d => d.Expire());
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
@ -150,19 +150,15 @@ namespace osu.Game.Rulesets.Judgements
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (JudgementBody.Drawable is IAnimatableJudgement animatable)
|
if (JudgementBody.Drawable is IAnimatableJudgement animatable)
|
||||||
{
|
|
||||||
var drawableAnimation = (Drawable)animatable;
|
|
||||||
|
|
||||||
animatable.PlayAnimation();
|
animatable.PlayAnimation();
|
||||||
|
|
||||||
// a derived version of DrawableJudgement may be proposing a lifetime.
|
// a derived version of DrawableJudgement may be proposing a lifetime.
|
||||||
// if not adjusted (or the skinned portion requires greater bounds than calculated) use the skinned source's lifetime.
|
// if not adjusted (or the skinned portion requires greater bounds than calculated) use the skinned source's lifetime.
|
||||||
double lastTransformTime = drawableAnimation.LatestTransformEndTime;
|
double lastTransformTime = JudgementBody.Drawable.LatestTransformEndTime;
|
||||||
if (LifetimeEnd == double.MaxValue || lastTransformTime > LifetimeEnd)
|
if (LifetimeEnd == double.MaxValue || lastTransformTime > LifetimeEnd)
|
||||||
LifetimeEnd = lastTransformTime;
|
LifetimeEnd = lastTransformTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private HitResult? currentDrawableType;
|
private HitResult? currentDrawableType;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user