mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add fallback-to-default logic for HoverSounds and HoverClickSounds
This commit is contained in:
@ -31,7 +31,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(AudioManager audio, SessionStatics statics)
|
||||
{
|
||||
sampleHover = audio.Samples.Get($@"UI/{SampleSet.GetDescription()}-hover");
|
||||
sampleHover = audio.Samples.Get($@"UI/{SampleSet.GetDescription()}-hover") ?? audio.Samples.Get($@"UI/{HoverSampleSet.Default.GetDescription()}-hover");
|
||||
}
|
||||
|
||||
public override void PlayHoverSample()
|
||||
@ -44,7 +44,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
public enum HoverSampleSet
|
||||
{
|
||||
[Description("default")]
|
||||
Loud,
|
||||
Default,
|
||||
|
||||
[Description("soft")]
|
||||
Normal,
|
||||
|
Reference in New Issue
Block a user