From 62fa619ad43fc9161f9a733ff2a9d6d057817b75 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 24 Jan 2020 19:08:14 +0900 Subject: [PATCH] Display "no limit" for maximum stars --- .../Settings/Sections/Gameplay/SongSelectSettings.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Settings/Sections/Gameplay/SongSelectSettings.cs b/osu.Game/Overlays/Settings/Sections/Gameplay/SongSelectSettings.cs index a5f56ae76e..78f12c0695 100644 --- a/osu.Game/Overlays/Settings/Sections/Gameplay/SongSelectSettings.cs +++ b/osu.Game/Overlays/Settings/Sections/Gameplay/SongSelectSettings.cs @@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Settings.Sections.Gameplay KeyboardStep = 0.1f, Keywords = new[] { "star", "difficulty" } }, - new SettingsSlider + new SettingsSlider { LabelText = "up to", Bindable = config.GetBindable(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 { public override string TooltipText => Current.Value.ToString(@"0.## stars");