1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:35:10 +08:00

Rename applyPitchAdjustment to adjustPitchChanged

This commit is contained in:
Henry Lin 2022-03-03 13:07:30 +08:00
parent ae71dcceeb
commit 9c2aa51194

View File

@ -87,7 +87,7 @@ namespace osu.Game.Rulesets.Mods
SpeedChange.Value = val.NewValue;
targetRate = val.NewValue;
});
AdjustPitch.BindValueChanged(applyPitchAdjustment);
AdjustPitch.BindValueChanged(adjustPitchChanged);
}
public void ApplyToTrack(ITrack track)
@ -112,7 +112,7 @@ namespace osu.Game.Rulesets.Mods
public double ApplyToRate(double time, double rate = 1) => rate * InitialRate.Value;
private void applyPitchAdjustment(ValueChangedEvent<bool> adjustPitchSetting)
private void adjustPitchChanged(ValueChangedEvent<bool> adjustPitchSetting)
{
track?.RemoveAdjustment(adjustmentForPitchSetting(adjustPitchSetting.OldValue), SpeedChange);