mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 00:50:16 +08:00
Rename TimedDuck -> DuckMomentarily
This commit is contained in:
@@ -292,7 +292,7 @@ namespace osu.Game.Overlays
|
||||
/// <param name="duckCutoffTo">Cutoff frequency to drop `AudioFilter` to. Use `null` to skip filter effect.</param>
|
||||
/// <param name="duckDuration">Duration of the ducking transition, in ms.</param>
|
||||
/// <param name="duckEasing">Easing for the ducking transition.</param>
|
||||
public void TimedDuck(int delay, int unduckDuration = 500, Easing unduckEasing = Easing.InCubic, float duckVolumeTo = 0.25f, int? duckCutoffTo = 300, int duckDuration = 0, Easing duckEasing = Easing.OutCubic)
|
||||
public void DuckMomentarily(int delay, int unduckDuration = 500, Easing unduckEasing = Easing.InCubic, float duckVolumeTo = 0.25f, int? duckCutoffTo = 300, int duckDuration = 0, Easing duckEasing = Easing.OutCubic)
|
||||
{
|
||||
if (audioDuckActive) return;
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
rulesetSelectionChannel[r.NewValue] = channel;
|
||||
channel.Play();
|
||||
musicController?.TimedDuck(600);
|
||||
musicController?.DuckMomentarily(600);
|
||||
}
|
||||
|
||||
public override bool HandleNonPositionalInput => !Current.Disabled && base.HandleNonPositionalInput;
|
||||
|
||||
Reference in New Issue
Block a user