2016-12-06 09:56:20 +00: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 OpenTK;
|
2016-11-03 04:43:05 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2016-11-07 23:04:49 +00:00
|
|
|
|
using osu.Game.Graphics;
|
2016-11-03 04:43:05 +00:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Options
|
|
|
|
|
{
|
2016-11-08 02:24:41 +00:00
|
|
|
|
public class MaintenanceSection : OptionsSection
|
2016-11-03 04:43:05 +00:00
|
|
|
|
{
|
2016-11-09 04:16:04 +00:00
|
|
|
|
public override string Header => "Maintenance";
|
2016-11-07 23:04:49 +00:00
|
|
|
|
public override FontAwesome Icon => FontAwesome.fa_wrench;
|
2016-11-09 03:38:40 +00:00
|
|
|
|
|
2016-11-08 02:24:41 +00:00
|
|
|
|
public MaintenanceSection()
|
2016-11-03 04:43:05 +00:00
|
|
|
|
{
|
2016-11-04 03:01:11 +00:00
|
|
|
|
content.Spacing = new Vector2(0, 5);
|
2016-11-03 04:43:05 +00:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2016-11-04 03:01:11 +00:00
|
|
|
|
new OsuButton
|
2016-11-03 04:43:05 +00:00
|
|
|
|
{
|
2016-11-04 03:01:11 +00: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 04:43:05 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|