1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 10:07:28 +08:00
osu-lazer/osu.Game/Overlays/Options/General/UpdateOptions.cs

37 lines
1.0 KiB
C#
Raw Normal View History

2016-11-08 10:28:06 +08:00
using osu.Framework;
2016-11-03 10:22:34 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Platform;
2016-11-03 10:27:39 +08:00
using osu.Game.Graphics.UserInterface;
2016-11-03 10:22:34 +08:00
2016-11-08 10:24:41 +08:00
namespace osu.Game.Overlays.Options.General
2016-11-03 10:22:34 +08:00
{
public class UpdateOptions : OptionsSubsection
{
2016-11-04 10:43:00 +08:00
private BasicStorage storage;
protected override string Header => "Updates";
2016-11-09 11:38:40 +08:00
2016-11-04 10:43:00 +08:00
public UpdateOptions()
2016-11-03 10:22:34 +08: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 10:27:39 +08:00
new OsuButton
2016-11-03 10:22:34 +08:00
{
RelativeSizeAxes = Axes.X,
Text = "Open osu! folder",
2016-11-04 10:43:00 +08:00
Action = () => storage?.OpenInNativeExplorer(),
2016-11-03 10:22:34 +08:00
}
};
}
2016-11-09 11:38:40 +08:00
2016-11-04 10:43:00 +08:00
protected override void Load(BaseGame game)
{
base.Load(game);
this.storage = game.Host.Storage;
}
2016-11-03 10:22:34 +08:00
}
}