mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Update usages of RemoveInternal
This commit is contained in:
@ -57,7 +57,7 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
{
|
||||
if (bufferedContainer == null && newBlurSigma != Vector2.Zero)
|
||||
{
|
||||
RemoveInternal(Sprite);
|
||||
RemoveInternal(Sprite, false);
|
||||
|
||||
AddInternal(bufferedContainer = new BufferedContainer(cachedFrameBuffer: true)
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Graphics.Containers
|
||||
if (value == expandableHeader) return;
|
||||
|
||||
if (expandableHeader != null)
|
||||
RemoveInternal(expandableHeader);
|
||||
RemoveInternal(expandableHeader, false);
|
||||
|
||||
expandableHeader = value;
|
||||
|
||||
|
@ -165,7 +165,7 @@ namespace osu.Game.Rulesets.Judgements
|
||||
|
||||
// sub-classes might have added their own children that would be removed here if .InternalChild was used.
|
||||
if (JudgementBody != null)
|
||||
RemoveInternal(JudgementBody);
|
||||
RemoveInternal(JudgementBody, true);
|
||||
|
||||
AddInternal(JudgementBody = new SkinnableDrawable(new GameplaySkinComponent<HitResult>(type), _ =>
|
||||
CreateDefaultJudgement(type), confineMode: ConfineMode.NoScaling)
|
||||
|
@ -132,7 +132,7 @@ namespace osu.Game.Rulesets.Objects.Pooling
|
||||
/// <remarks>
|
||||
/// Invoked when the entry became dead.
|
||||
/// </remarks>
|
||||
protected virtual void RemoveDrawable(TEntry entry, TDrawable drawable) => RemoveInternal(drawable);
|
||||
protected virtual void RemoveDrawable(TEntry entry, TDrawable drawable) => RemoveInternal(drawable, false);
|
||||
|
||||
private void entryCrossedBoundary(LifetimeEntry lifetimeEntry, LifetimeBoundaryKind kind, LifetimeBoundaryCrossingDirection direction)
|
||||
{
|
||||
|
@ -124,7 +124,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
unbindStartTime(drawable);
|
||||
|
||||
RemoveInternal(drawable);
|
||||
RemoveInternal(drawable, false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -166,8 +166,7 @@ namespace osu.Game.Screens.Play
|
||||
if (filters.Parent == null)
|
||||
return;
|
||||
|
||||
RemoveInternal(filters);
|
||||
filters.Dispose();
|
||||
RemoveInternal(filters, true);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
@ -34,7 +34,7 @@ namespace osu.Game.Screens.Ranking
|
||||
if (InternalChildren.Count == 0)
|
||||
throw new InvalidOperationException("Score panel container is not attached.");
|
||||
|
||||
RemoveInternal(Panel);
|
||||
RemoveInternal(Panel, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user