2016-11-03 12:43:05 +08:00
|
|
|
|
using System;
|
2016-11-04 11:01:11 +08:00
|
|
|
|
using OpenTK;
|
2016-11-03 12:43:05 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Options
|
|
|
|
|
{
|
|
|
|
|
public class MaintenanceOptions : OptionsSection
|
|
|
|
|
{
|
2016-11-04 11:01:11 +08:00
|
|
|
|
protected override string Header => "Maintenance";
|
|
|
|
|
|
2016-11-03 12:43:05 +08:00
|
|
|
|
public MaintenanceOptions()
|
|
|
|
|
{
|
2016-11-04 11:01:11 +08:00
|
|
|
|
content.Spacing = new Vector2(0, 5);
|
2016-11-03 12:43:05 +08:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2016-11-04 11:01:11 +08:00
|
|
|
|
new OsuButton
|
2016-11-03 12:43:05 +08:00
|
|
|
|
{
|
2016-11-04 11:01:11 +08:00
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Text = "Delete all unranked maps",
|
|
|
|
|
},
|
|
|
|
|
new OsuButton
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Text = "Repair folder permissions",
|
|
|
|
|
},
|
|
|
|
|
new OsuButton
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Text = "Mark all maps as played",
|
|
|
|
|
},
|
|
|
|
|
new OsuButton
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Text = "Run osu! updater",
|
|
|
|
|
},
|
|
|
|
|
new SpriteText
|
|
|
|
|
{
|
|
|
|
|
Text = "TODO: osu version here",
|
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
|
},
|
2016-11-03 12:43:05 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|