mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Localise non-overridden samples
This commit is contained in:
parent
35cdd6d866
commit
bf0f4fddad
@ -37,8 +37,6 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
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 @@ namespace osu.Game.Graphics.Containers
|
||||
[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()
|
||||
|
Loading…
Reference in New Issue
Block a user