Localise non-overridden samples

This commit is contained in:
Dean Herbert 2023-08-25 01:08:22 +09:00
parent 35cdd6d866
commit bf0f4fddad
1 changed files with 2 additions and 4 deletions

View File

@ -37,8 +37,6 @@ public partial class WaveContainer : VisibilityContainer
private Sample? samplePopIn; private Sample? samplePopIn;
private Sample? samplePopOut; 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` // required due to LoadAsyncComplete() in `VisibilityContainer` calling PopOut() during load - similar workaround to `OsuDropdownMenu`
private bool wasShown; private bool wasShown;
@ -70,8 +68,8 @@ public Color4 FourthWaveColour
[BackgroundDependencyLoader(true)] [BackgroundDependencyLoader(true)]
private void load(AudioManager audio) private void load(AudioManager audio)
{ {
samplePopIn = audio.Samples.Get(PopInSampleName); samplePopIn = audio.Samples.Get("UI/wave-pop-in");
samplePopOut = audio.Samples.Get(PopOutSampleName); samplePopOut = audio.Samples.Get("UI/overlay-big-pop-out");
} }
public WaveContainer() public WaveContainer()