mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:43:22 +08:00
Fix HitError
Clear
methods not correctly returning pooled drawables
This commit is contained in:
parent
110749205d
commit
f2c6c348be
@ -485,7 +485,11 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Clear() => judgementsContainer.Clear();
|
public override void Clear()
|
||||||
|
{
|
||||||
|
foreach (var j in judgementsContainer)
|
||||||
|
j.FadeOut().Expire();
|
||||||
|
}
|
||||||
|
|
||||||
public enum CentreMarkerStyles
|
public enum CentreMarkerStyles
|
||||||
{
|
{
|
||||||
|
@ -63,7 +63,11 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
|||||||
judgementsFlow.Push(GetColourForHitResult(judgement.Type));
|
judgementsFlow.Push(GetColourForHitResult(judgement.Type));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Clear() => judgementsFlow.Clear();
|
public override void Clear()
|
||||||
|
{
|
||||||
|
foreach (var j in judgementsFlow)
|
||||||
|
j.FadeOut().Expire();
|
||||||
|
}
|
||||||
|
|
||||||
private partial class JudgementFlow : FillFlowContainer<HitErrorShape>
|
private partial class JudgementFlow : FillFlowContainer<HitErrorShape>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user