2016-11-03 02:22:34 +00:00
|
|
|
|
using System;
|
|
|
|
|
using OpenTK.Graphics;
|
2016-11-04 02:43:00 +00:00
|
|
|
|
using osu.Framework;
|
2016-11-03 02:22:34 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
|
|
|
|
using osu.Framework.Platform;
|
2016-11-03 02:27:39 +00:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2016-11-03 02:22:34 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Options
|
|
|
|
|
{
|
|
|
|
|
public class UpdateOptions : OptionsSubsection
|
|
|
|
|
{
|
2016-11-04 02:43:00 +00:00
|
|
|
|
private BasicStorage storage;
|
2016-11-04 03:01:11 +00:00
|
|
|
|
protected override string Header => "Updates";
|
2016-11-04 02:43:00 +00:00
|
|
|
|
|
|
|
|
|
public UpdateOptions()
|
2016-11-03 02:22:34 +00:00
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new SpriteText { Text = "TODO: Dropdown" },
|
|
|
|
|
new SpriteText { Text = "Your osu! is up to date" }, // TODO: map this to reality
|
2016-11-03 02:27:39 +00:00
|
|
|
|
new OsuButton
|
2016-11-03 02:22:34 +00:00
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Text = "Open osu! folder",
|
2016-11-04 02:43:00 +00:00
|
|
|
|
Action = () => storage?.OpenInNativeExplorer(),
|
2016-11-03 02:22:34 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
2016-11-04 02:43:00 +00:00
|
|
|
|
|
|
|
|
|
protected override void Load(BaseGame game)
|
|
|
|
|
{
|
|
|
|
|
base.Load(game);
|
|
|
|
|
this.storage = game.Host.Storage;
|
|
|
|
|
}
|
2016-11-03 02:22:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|