1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 19:57:24 +08:00
osu-lazer/osu.Game/Overlays/Options/Sections/MaintenanceSection.cs

50 lines
1.5 KiB
C#
Raw Normal View History

2016-12-06 17:56:20 +08: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.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using OpenTK;
namespace osu.Game.Overlays.Options.Sections
2016-11-03 12:43:05 +08:00
{
2016-11-08 10:24:41 +08:00
public class MaintenanceSection : OptionsSection
2016-11-03 12:43:05 +08:00
{
2016-11-09 12:16:04 +08:00
public override string Header => "Maintenance";
public override FontAwesome Icon => FontAwesome.fa_wrench;
2016-11-09 11:38:40 +08:00
2016-11-08 10:24:41 +08:00
public MaintenanceSection()
2016-11-03 12:43:05 +08:00
{
content.Spacing = new Vector2(0, 5);
2016-11-03 12:43:05 +08:00
Children = new Drawable[]
{
new OsuButton
2016-11-03 12:43:05 +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 OptionLabel
{
Text = "TODO: osu version here",
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
},
2016-11-03 12:43:05 +08:00
};
}
}
}