mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
Display "no limit" for maximum stars
This commit is contained in:
parent
9e0e7be8d0
commit
62fa619ad4
@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
||||
KeyboardStep = 0.1f,
|
||||
Keywords = new[] { "star", "difficulty" }
|
||||
},
|
||||
new SettingsSlider<double, StarSlider>
|
||||
new SettingsSlider<double, MaximumStarsSlider>
|
||||
{
|
||||
LabelText = "up to",
|
||||
Bindable = config.GetBindable<double>(OsuSetting.DisplayStarsMaximum),
|
||||
@ -49,6 +49,11 @@ namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
||||
};
|
||||
}
|
||||
|
||||
private class MaximumStarsSlider : StarSlider
|
||||
{
|
||||
public override string TooltipText => Current.IsDefault ? "no limit" : base.TooltipText;
|
||||
}
|
||||
|
||||
private class StarSlider : OsuSliderBar<double>
|
||||
{
|
||||
public override string TooltipText => Current.Value.ToString(@"0.## stars");
|
||||
|
Loading…
Reference in New Issue
Block a user