2016-12-06 17:56:20 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2016-11-11 06:40:42 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2016-11-09 11:38:40 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
2017-01-31 17:37:11 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2016-11-03 12:43:05 +08:00
|
|
|
|
|
2017-01-31 17:37:11 +08:00
|
|
|
|
namespace osu.Game.Overlays.Options.Sections.Online
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
2017-01-31 18:23:52 +08:00
|
|
|
|
public class IntegrationOptions : OptionsSubsection
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
2016-11-09 11:38:40 +08:00
|
|
|
|
protected override string Header => "Integration";
|
|
|
|
|
|
2016-11-12 18:44:16 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
2016-11-09 11:38:40 +08:00
|
|
|
|
{
|
2016-11-11 06:40:42 +08:00
|
|
|
|
Children = new Drawable[]
|
2016-11-09 11:38:40 +08:00
|
|
|
|
{
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Integrate with Yahoo! status display",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.YahooIntegration)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Integrate with MSN Live status display",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.MsnIntegration)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Automatically start osu!direct downloads",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownload)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Prefer no-video downloads",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownloadNoVideo)
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-11-03 12:43:05 +08:00
|
|
|
|
}
|