2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|
|
|
|
{
|
2019-09-18 01:15:18 +08:00
|
|
|
|
public class UserInterfaceSettings : SettingsSubsection
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "User Interface";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new[]
|
|
|
|
|
{
|
2019-09-18 01:15:18 +08:00
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Rotate cursor when dragging",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.CursorRotation)
|
|
|
|
|
},
|
2018-04-13 17:19:50 +08:00
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Parallax",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.MenuParallax)
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|