2017-02-07 13:59:30 +09:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2017-02-07 13:52:19 +09:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
2017-04-21 13:59:04 +02:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2017-02-07 13:52:19 +09:00
|
|
|
|
|
2017-05-15 10:55:29 +09:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Gameplay
|
2017-02-07 13:52:19 +09:00
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
public class SongSelectSettings : SettingsSubsection
|
2017-02-07 13:52:19 +09:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "Song Select";
|
2016-11-30 10:32:07 -05:00
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsSlider<double, StarSlider>
|
2016-12-05 09:17:46 -05:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Display beatmaps from",
|
2017-05-15 10:56:27 +09:00
|
|
|
|
Bindable = config.GetBindable<double>(OsuSetting.DisplayStarsMinimum)
|
2016-12-05 09:17:46 -05:00
|
|
|
|
},
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsSlider<double, StarSlider>
|
2016-12-05 09:17:46 -05:00
|
|
|
|
{
|
|
|
|
|
LabelText = "up to",
|
2017-05-15 10:56:27 +09:00
|
|
|
|
Bindable = config.GetBindable<double>(OsuSetting.DisplayStarsMaximum)
|
2016-12-05 09:17:46 -05:00
|
|
|
|
},
|
2016-11-30 10:32:07 -05:00
|
|
|
|
};
|
|
|
|
|
}
|
2017-04-21 13:59:04 +02:00
|
|
|
|
|
|
|
|
|
private class StarSlider : OsuSliderBar<double>
|
|
|
|
|
{
|
|
|
|
|
public override string TooltipText => Current.Value.ToString(@"0.## stars");
|
|
|
|
|
}
|
2017-02-07 13:52:19 +09:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|