Initial storage changes

This commit is contained in:
Dean Herbert
2021-07-08 14:28:13 +09:00
parent 8d94e8f534
commit 0e4f4a6fde
4 changed files with 40 additions and 123 deletions

View File

@ -12,13 +12,13 @@ namespace osu.Game.Rulesets.Taiko.Mods
public class TaikoModDifficultyAdjust : ModDifficultyAdjust
{
[SettingSource("Scroll Speed", "Adjust a beatmap's set scroll speed", LAST_SETTING_ORDER + 1)]
public BindableNumber<float> ScrollSpeed { get; } = new BindableFloat
public Bindable<float?> ScrollSpeed { get; } = new Bindable<float?>
{
/*
Precision = 0.05f,
MinValue = 0.25f,
MaxValue = 4,
Default = 1,
Value = 1,
*/
};
public override string SettingDescription
@ -39,7 +39,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
{
base.ApplySettings(difficulty);
ApplySetting(ScrollSpeed, scroll => difficulty.SliderMultiplier *= scroll);
if (ScrollSpeed.Value != null) difficulty.SliderMultiplier = ScrollSpeed.Value.Value;
}
}
}