1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-13 02:27:20 +08:00

40 lines
1.3 KiB
C#
Raw Normal View History

2016-12-06 18:56:20 +09:00
//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;
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.Graphics.Sprites;
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.Options.General
{
public class UpdateOptions : OptionsSubsection
{
protected override string Header => "Updates";
[BackgroundDependencyLoader]
2016-12-01 17:28:20 -05:00
private void load(BasicStorage storage, OsuConfigManager config)
2016-11-03 22:43:00 -04:00
{
2016-11-08 18:13:20 -05:00
Children = new Drawable[]
{
2016-12-01 17:33:30 -05:00
new DropdownOption<ReleaseStream>
2016-12-01 17:28:20 -05:00
{
LabelText = "Release stream",
2016-12-01 17:28:20 -05:00
Bindable = config.GetBindable<ReleaseStream>(OsuConfig.ReleaseStream),
},
2016-11-08 18:13:20 -05:00
new SpriteText { Text = "Your osu! is up to date" }, // TODO: map this to reality
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Open osu! folder",
Action = () => storage.OpenInNativeExplorer(),
}
};
}
}
}