2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-02 16:45:22 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
2017-05-15 09:55:29 +08:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Audio
|
2017-05-02 16:45:22 +08:00
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
public class MainMenuSettings : SettingsSubsection
|
2017-05-02 16:45:22 +08:00
|
|
|
|
{
|
|
|
|
|
protected override string Header => "Main Menu";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new[]
|
|
|
|
|
{
|
2017-05-15 09:55:29 +08:00
|
|
|
|
new SettingsCheckbox
|
2017-05-02 16:45:22 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Interface voices",
|
2017-05-15 09:56:27 +08:00
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.MenuVoice)
|
2017-05-02 16:45:22 +08:00
|
|
|
|
},
|
2017-05-15 09:55:29 +08:00
|
|
|
|
new SettingsCheckbox
|
2017-05-02 16:45:22 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "osu! music theme",
|
2017-05-15 09:56:27 +08:00
|
|
|
|
Bindable = config.GetBindable<bool>(OsuSetting.MenuMusic)
|
2017-05-02 16:45:22 +08:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-05-04 22:07:24 +08:00
|
|
|
|
}
|