mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 06:52:55 +08:00
48 lines
1.6 KiB
C#
48 lines
1.6 KiB
C#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics.UserInterface;
|
|
using osu.Game.Configuration;
|
|
|
|
namespace osu.Game.Overlays.Options.Graphics
|
|
{
|
|
public class MainMenuOptions : OptionsSubsection
|
|
{
|
|
protected override string Header => "Main Menu";
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config)
|
|
{
|
|
Children = new[]
|
|
{
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Snow",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MenuSnow)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Parallax",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MenuParallax)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Menu tips",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ShowMenuTips)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Interface voices",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MenuVoice)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "osu! music theme",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MenuMusic)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
} |