Increase ducking duration when selecting Mania ruleset

This commit is contained in:
Jamie Taylor 2024-10-26 01:45:51 +09:00
parent 47aa2c2bfc
commit f5071c205f
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -122,7 +122,10 @@ namespace osu.Game.Overlays.Toolbar
rulesetSelectionChannel[r.NewValue] = channel;
channel.Play();
musicController?.DuckMomentarily(500, new DuckParameters { DuckDuration = 0 });
// Longer unduck delay for Mania sample
int unduckDelay = r.NewValue.OnlineID == 3 ? 750 : 500;
musicController?.DuckMomentarily(unduckDelay, new DuckParameters { DuckDuration = 0 });
}
public override bool HandleNonPositionalInput => !Current.Disabled && base.HandleNonPositionalInput;