Revert moving hover sounds to content container

This commit is contained in:
Joseph Madamba
2023-02-02 23:43:08 -08:00
parent 2ba90b5447
commit 6135db6bd7
2 changed files with 6 additions and 3 deletions

View File

@ -44,8 +44,11 @@ namespace osu.Game.Graphics.Containers
content.AutoSizeAxes = AutoSizeAxes; content.AutoSizeAxes = AutoSizeAxes;
} }
AddInternal(content); AddRangeInternal(new Drawable[]
Add(CreateHoverSounds(sampleSet)); {
content,
CreateHoverSounds(sampleSet)
});
} }
protected override void ClearInternal(bool disposeChildren = true) => protected override void ClearInternal(bool disposeChildren = true) =>

View File

@ -116,7 +116,7 @@ namespace osu.Game.Graphics.UserInterface
}); });
if (hoverSounds.HasValue) if (hoverSounds.HasValue)
Add(new HoverClickSounds(hoverSounds.Value) { Enabled = { BindTarget = Enabled } }); AddInternal(new HoverClickSounds(hoverSounds.Value) { Enabled = { BindTarget = Enabled } });
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]