mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 23:42:55 +08:00
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
// Copyright (c) 2007-2017 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.Game.Configuration;
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
namespace osu.Game.Overlays.Options.Sections.Audio
|
|
{
|
|
public class MainMenuOptions : OptionsSubsection
|
|
{
|
|
protected override string Header => "Main Menu";
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config)
|
|
{
|
|
Children = new[]
|
|
{
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Interface voices",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MenuVoice)
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "osu! music theme",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MenuMusic)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
} |