1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 10:37:46 +08:00
osu-lazer/osu.Game/Overlays/Options/MaintenanceSection.cs

51 lines
1.6 KiB
C#
Raw Normal View History

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