From 23f12e1ea36195ed29fa19955d41290cfbc92328 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 29 Jan 2024 01:49:34 +0900 Subject: [PATCH] Should not be a container --- osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs | 6 +++--- osu.Game/Screens/Play/HUD/DefaultSongProgressBar.cs | 2 +- osu.Game/Screens/Play/HUD/SongProgressBar.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs b/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs index 196d8ca278..42f638c386 100644 --- a/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs +++ b/osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs @@ -41,7 +41,7 @@ namespace osu.Game.Screens.Play.HUD CornerRadius = 5; Masking = true; - Children = new Drawable[] + InternalChildren = new Drawable[] { background = new Box { @@ -105,9 +105,9 @@ namespace osu.Game.Screens.Play.HUD audioBar.Length = (float)Interpolation.Lerp(audioBar.Length, NormalizedValue, Math.Clamp(Time.Elapsed / 40, 0, 1)); if (trackTime > CurrentTime) - ChangeChildDepth(audioBar, -1); + ChangeInternalChildDepth(audioBar, -1); else - ChangeChildDepth(audioBar, 0); + ChangeInternalChildDepth(audioBar, 0); float timeDelta = (float)Math.Abs(CurrentTime - trackTime); diff --git a/osu.Game/Screens/Play/HUD/DefaultSongProgressBar.cs b/osu.Game/Screens/Play/HUD/DefaultSongProgressBar.cs index 46867e7622..222d6c17bf 100644 --- a/osu.Game/Screens/Play/HUD/DefaultSongProgressBar.cs +++ b/osu.Game/Screens/Play/HUD/DefaultSongProgressBar.cs @@ -27,7 +27,7 @@ namespace osu.Game.Screens.Play.HUD RelativeSizeAxes = Axes.X; Height = barHeight + handleBarHeight + handleSize.Y; - Children = new Drawable[] + InternalChildren = new Drawable[] { new Box { diff --git a/osu.Game/Screens/Play/HUD/SongProgressBar.cs b/osu.Game/Screens/Play/HUD/SongProgressBar.cs index df4df2a783..140621986c 100644 --- a/osu.Game/Screens/Play/HUD/SongProgressBar.cs +++ b/osu.Game/Screens/Play/HUD/SongProgressBar.cs @@ -10,7 +10,7 @@ using osuTK; namespace osu.Game.Screens.Play.HUD { - public abstract partial class SongProgressBar : Container + public abstract partial class SongProgressBar : CompositeDrawable { /// /// Action which is invoked when a seek is requested, with the proposed millisecond value for the seek operation.