Move FollowPlayback setting to User Interface subsection

This commit is contained in:
Roman Kapustin 2019-10-06 15:06:25 +03:00
parent bdea75b995
commit eda4a27b45
3 changed files with 6 additions and 29 deletions

View File

@ -1,27 +0,0 @@
// 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.Configuration;
namespace osu.Game.Overlays.Settings.Sections.Audio
{
public class PlaylistSettings : SettingsSubsection
{
protected override string Header => "Playlist";
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
Children = new Drawable[]
{
new SettingsCheckbox
{
LabelText = "Follow playback",
Bindable = config.GetBindable<bool>(OsuSetting.FollowPlayback)
}
};
}
}
}

View File

@ -19,8 +19,7 @@ namespace osu.Game.Overlays.Settings.Sections
new AudioDevicesSettings(), new AudioDevicesSettings(),
new VolumeSettings(), new VolumeSettings(),
new OffsetSettings(), new OffsetSettings(),
new MainMenuSettings(), new MainMenuSettings()
new PlaylistSettings()
}; };
} }
} }

View File

@ -17,6 +17,11 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
{ {
Children = new Drawable[] Children = new Drawable[]
{ {
new SettingsCheckbox
{
LabelText = "Scroll playlist on song change",
Bindable = config.GetBindable<bool>(OsuSetting.FollowPlayback)
},
new SettingsCheckbox new SettingsCheckbox
{ {
LabelText = "Rotate cursor when dragging", LabelText = "Rotate cursor when dragging",