1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 03:05:10 +08:00
osu-lazer/osu.Game/Overlays/Options/Sections/Online/IntegrationOptions.cs

43 lines
1.6 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2016-12-06 17:56:20 +08:00
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;
using osu.Game.Graphics.UserInterface;
2016-11-03 12:43:05 +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";
[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
{
new OsuCheckbox
2016-11-11 06:40:42 +08:00
{
LabelText = "Integrate with Yahoo! status display",
Bindable = config.GetBindable<bool>(OsuConfig.YahooIntegration)
},
new OsuCheckbox
2016-11-11 06:40:42 +08:00
{
LabelText = "Integrate with MSN Live status display",
Bindable = config.GetBindable<bool>(OsuConfig.MsnIntegration)
},
new OsuCheckbox
2016-11-11 06:40:42 +08:00
{
LabelText = "Automatically start osu!direct downloads",
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownload)
},
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
}