mirror of https://github.com/ppy/osu
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Overlays.Settings;
|
|
using osu.Game.Rulesets.Osu.Configuration;
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI
|
|
{
|
|
public class OsuSettingsSubsection : RulesetSettingsSubsection
|
|
{
|
|
protected override string Header => "osu!";
|
|
|
|
public OsuSettingsSubsection(Ruleset ruleset)
|
|
: base(ruleset)
|
|
{
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
var config = (OsuRulesetConfigManager)Config;
|
|
|
|
Children = new Drawable[]
|
|
{
|
|
new SettingsCheckbox
|
|
{
|
|
LabelText = "Snaking in sliders",
|
|
Bindable = config.GetBindable<bool>(OsuRulesetSetting.SnakingInSliders)
|
|
},
|
|
new SettingsCheckbox
|
|
{
|
|
LabelText = "Snaking out sliders",
|
|
Bindable = config.GetBindable<bool>(OsuRulesetSetting.SnakingOutSliders)
|
|
},
|
|
new SettingsCheckbox
|
|
{
|
|
LabelText = "Cursor trail",
|
|
Bindable = config.GetBindable<bool>(OsuRulesetSetting.ShowCursorTrail)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|