diff --git a/osu.Game/Overlays/Options/Gameplay/SongSelectGameplayOptions.cs b/osu.Game/Overlays/Options/Gameplay/SongSelectGameplayOptions.cs index 63453f336d..e0f25cfea7 100644 --- a/osu.Game/Overlays/Options/Gameplay/SongSelectGameplayOptions.cs +++ b/osu.Game/Overlays/Options/Gameplay/SongSelectGameplayOptions.cs @@ -13,38 +13,24 @@ namespace osu.Game.Overlays.Options.Gameplay { public class SongSelectGameplayOptions : OptionsSubsection { - protected override string Header => "Song Select"; - - private BindableInt starMinimum, starMaximum; - private StarCounter counterMin, counterMax; + protected override string Header => "Song Select"; [BackgroundDependencyLoader] private void load(OsuConfigManager config) { - starMinimum = (BindableInt)config.GetBindable(OsuConfig.DisplayStarsMinimum); - starMaximum = (BindableInt)config.GetBindable(OsuConfig.DisplayStarsMaximum); Children = new Drawable[] { - new SliderOption { LabelText = "Display beatmaps from", Bindable = starMinimum }, - counterMin = new StarCounter { Count = starMinimum.Value }, - new SliderOption { LabelText = "up to", Bindable = starMaximum }, - counterMax = new StarCounter { Count = starMaximum.Value }, + new SliderOption + { + LabelText = "Display beatmaps from", + Bindable = (BindableDouble)config.GetBindable(OsuConfig.DisplayStarsMinimum) + }, + new SliderOption + { + LabelText = "up to", + Bindable = (BindableDouble)config.GetBindable(OsuConfig.DisplayStarsMaximum) + }, }; - starMinimum.ValueChanged += starValueChanged; - starMaximum.ValueChanged += starValueChanged; - } - - private void starValueChanged(object sender, EventArgs e) - { - counterMin.Count = starMinimum.Value; - counterMax.Count = starMaximum.Value; - } - - protected override void Dispose(bool isDisposing) - { - starMinimum.ValueChanged -= starValueChanged; - starMaximum.ValueChanged -= starValueChanged; - base.Dispose(isDisposing); } } }