osu/osu.Game.Rulesets.Osu/UI/OsuSettingsSubsection.cs

46 lines
1.4 KiB
C#
Raw Normal View History

2018-04-13 09:19:50 +00:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Overlays.Settings;
2019-01-23 10:46:53 +00:00
using osu.Game.Rulesets.Osu.Configuration;
2018-04-13 09:19:50 +00:00
namespace osu.Game.Rulesets.Osu.UI
{
2019-01-23 10:46:53 +00:00
public class OsuSettingsSubsection : RulesetSettingsSubsection
2018-04-13 09:19:50 +00:00
{
protected override string Header => "osu!";
2019-01-23 10:46:53 +00:00
public OsuSettingsSubsection(Ruleset ruleset)
: base(ruleset)
{
}
2018-04-13 09:19:50 +00:00
[BackgroundDependencyLoader]
2019-01-23 10:46:53 +00:00
private void load()
2018-04-13 09:19:50 +00:00
{
2019-01-23 10:46:53 +00:00
var config = (OsuConfigManager)Config;
2018-04-13 09:19:50 +00:00
Children = new Drawable[]
{
new SettingsCheckbox
{
LabelText = "Snaking in sliders",
2019-01-23 10:46:53 +00:00
Bindable = config.GetBindable<bool>(OsuSetting.SnakingInSliders)
2018-04-13 09:19:50 +00:00
},
new SettingsCheckbox
{
LabelText = "Snaking out sliders",
2019-01-23 10:46:53 +00:00
Bindable = config.GetBindable<bool>(OsuSetting.SnakingOutSliders)
2018-04-13 09:19:50 +00:00
},
new SettingsCheckbox
{
LabelText = "Show cursor trail",
Bindable = config.GetBindable<bool>(OsuSetting.ShowCursorTrail)
},
2018-04-13 09:19:50 +00:00
};
}
}
}