1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 10:27:45 +08:00

36 lines
1.1 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 18:56:20 +09:00
2016-11-08 18:13:20 -05:00
using osu.Framework.Allocation;
2016-11-02 22:22:34 -04:00
using osu.Framework.Graphics;
using osu.Framework.Platform;
2016-12-01 17:28:20 -05:00
using osu.Game.Configuration;
2016-11-02 22:27:39 -04:00
using osu.Game.Graphics.UserInterface;
2016-11-02 22:22:34 -04:00
namespace osu.Game.Overlays.Settings.Sections.General
{
public class UpdateSettings : SettingsSubsection
{
protected override string Header => "Updates";
[BackgroundDependencyLoader]
2017-02-23 15:38:17 +09:00
private void load(Storage storage, OsuConfigManager config)
2016-11-03 22:43:00 -04:00
{
2016-11-08 18:13:20 -05:00
Children = new Drawable[]
{
new SettingsEnumDropdown<ReleaseStream>
2016-12-01 17:28:20 -05:00
{
LabelText = "Release stream",
2017-05-15 10:56:27 +09:00
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
2016-12-01 17:28:20 -05:00
},
2016-11-08 18:13:20 -05:00
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Open osu! folder",
Action = storage.OpenInNativeExplorer,
2016-11-08 18:13:20 -05:00
}
};
}
}
}