1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:02:54 +08:00

Change some defaults and always tween

This commit is contained in:
Dean Herbert 2021-07-30 17:38:04 +09:00
parent bdc5eb6d3d
commit d5e68f53b5

View File

@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Mods
private AudioContainer metronomeContainer;
[SettingSource("Enable metronome", "Add a metronome to help you keep track of the rhythm.")]
[SettingSource("Enable metronome", "Add a metronome beat to help you keep track of the rhythm.")]
public BindableBool EnableMetronome { get; } = new BindableBool
{
Default = true,
@ -63,8 +63,8 @@ namespace osu.Game.Rulesets.Mods
[SettingSource("Mute hit sounds", "Hit sounds are also muted alongside the track.")]
public BindableBool AffectsHitSounds { get; } = new BindableBool
{
Default = false,
Value = false
Default = true,
Value = true
};
public void ApplyToTrack(ITrack track)
@ -97,16 +97,8 @@ namespace osu.Game.Rulesets.Mods
if (InverseMuting.Value)
dimFactor = 1 - dimFactor;
if (combo.NewValue < combo.OldValue)
{
scoreProcessor.TransformBindableTo(metronomeVolumeAdjust, dimFactor, 200, Easing.OutQuint);
scoreProcessor.TransformBindableTo(mainVolumeAdjust, 1 - dimFactor, 200, Easing.OutQuint);
}
else
{
metronomeVolumeAdjust.Value = dimFactor;
mainVolumeAdjust.Value = 1 - dimFactor;
}
scoreProcessor.TransformBindableTo(metronomeVolumeAdjust, dimFactor, 500, Easing.OutQuint);
scoreProcessor.TransformBindableTo(mainVolumeAdjust, 1 - dimFactor, 500, Easing.OutQuint);
}, true);
}