From bf0f4fddad3c2c5e6a54b41333fea68daef82b2c Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 25 Aug 2023 01:08:22 +0900 Subject: [PATCH] Localise non-overridden samples --- osu.Game/Graphics/Containers/WaveContainer.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osu.Game/Graphics/Containers/WaveContainer.cs b/osu.Game/Graphics/Containers/WaveContainer.cs index 09d1f7e9a4..e84cb276a4 100644 --- a/osu.Game/Graphics/Containers/WaveContainer.cs +++ b/osu.Game/Graphics/Containers/WaveContainer.cs @@ -37,8 +37,6 @@ public partial class WaveContainer : VisibilityContainer private Sample? samplePopIn; private Sample? samplePopOut; - protected virtual string PopInSampleName => "UI/wave-pop-in"; - protected virtual string PopOutSampleName => "UI/overlay-big-pop-out"; // required due to LoadAsyncComplete() in `VisibilityContainer` calling PopOut() during load - similar workaround to `OsuDropdownMenu` private bool wasShown; @@ -70,8 +68,8 @@ public Color4 FourthWaveColour [BackgroundDependencyLoader(true)] private void load(AudioManager audio) { - samplePopIn = audio.Samples.Get(PopInSampleName); - samplePopOut = audio.Samples.Get(PopOutSampleName); + samplePopIn = audio.Samples.Get("UI/wave-pop-in"); + samplePopOut = audio.Samples.Get("UI/overlay-big-pop-out"); } public WaveContainer()