2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-07-12 02:25:24 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
using osu.Game.Overlays.Settings;
|
|
|
|
|
|
2017-07-13 14:44:42 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI
|
2017-07-12 02:25:24 +08:00
|
|
|
|
{
|
|
|
|
|
public class OsuSettings : SettingsSubsection
|
|
|
|
|
{
|
2017-07-13 14:43:18 +08:00
|
|
|
|
protected override string Header => "osu!";
|
2017-07-12 02:25:24 +08:00
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Snaking in sliders",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.SnakingInSliders)
|
|
|
|
|
},
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Snaking out sliders",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.SnakingOutSliders)
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|