Add inverse setting

This commit is contained in:
Dean Herbert
2021-07-30 16:10:10 +09:00
parent a2f3edbfc0
commit b399ddaea0

View File

@ -52,6 +52,13 @@ namespace osu.Game.Rulesets.Mods
MaxValue = 500,
};
[SettingSource("Start muted", "Increase volume as combo builds.")]
public BindableBool InverseMuting { get; } = new BindableBool
{
Default = false,
Value = false
};
public void ApplyToTrack(ITrack track)
{
track.AddAdjustment(AdjustableProperty.Volume, trackVolumeAdjust);
@ -78,6 +85,8 @@ namespace osu.Game.Rulesets.Mods
metronomeVolumeAdjust.Value = dimFactor;
trackVolumeAdjust.Value = 1 - dimFactor;
if (InverseMuting.Value)
dimFactor = 1 - dimFactor;
}, true);
}