mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 19:57:24 +08:00
43 lines
1.5 KiB
C#
43 lines
1.5 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.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Configuration;
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
namespace osu.Game.Overlays.Options.Sections.Online
|
|
{
|
|
public class IntegrationOptions : OptionsSubsection
|
|
{
|
|
protected override string Header => "Integration";
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config)
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Integrate with Yahoo! status display",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.YahooIntegration)
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Integrate with MSN Live status display",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MsnIntegration)
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Automatically start osu!direct downloads",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownload)
|
|
},
|
|
new OsuCheckbox
|
|
{
|
|
LabelText = "Prefer no-video downloads",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownloadNoVideo)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
} |