Use double instead of float for UIHoldActivationDelay configuration value

All times use double, so let's also use double here.
This commit is contained in:
Dean Herbert
2022-03-04 12:21:05 +09:00
parent abba49fd8f
commit 7854a0a913
5 changed files with 11 additions and 11 deletions

View File

@ -35,18 +35,18 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
LabelText = UserInterfaceStrings.Parallax,
Current = config.GetBindable<bool>(OsuSetting.MenuParallax)
},
new SettingsSlider<float, TimeSlider>
new SettingsSlider<double, TimeSlider>
{
LabelText = UserInterfaceStrings.HoldToConfirmActivationTime,
Current = config.GetBindable<float>(OsuSetting.UIHoldActivationDelay),
Current = config.GetBindable<double>(OsuSetting.UIHoldActivationDelay),
KeyboardStep = 50
},
};
}
private class TimeSlider : OsuSliderBar<float>
private class TimeSlider : OsuSliderBar<double>
{
protected override LocalisableString GetTooltipText(float value) => $"{value:N0} ms";
protected override LocalisableString GetTooltipText(double value) => $"{value:N0} ms";
}
}
}