2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using System.ComponentModel;
|
2019-03-27 18:29:27 +08:00
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
using osu.Game.Screens.Select.Options;
|
2018-11-20 15:51:59 +08:00
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
using osuTK.Input;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-03-25 00:02:36 +08:00
|
|
|
|
namespace osu.Game.Tests.Visual.SongSelect
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
[Description("bottom beatmap details")]
|
|
|
|
|
public class TestCaseBeatmapOptionsOverlay : OsuTestCase
|
|
|
|
|
{
|
|
|
|
|
public TestCaseBeatmapOptionsOverlay()
|
|
|
|
|
{
|
|
|
|
|
var overlay = new BeatmapOptionsOverlay();
|
|
|
|
|
|
2019-03-27 18:29:27 +08:00
|
|
|
|
overlay.AddButton(@"Remove", @"from unplayed", FontAwesome.TimesCircleOutline, Color4.Purple, null, Key.Number1);
|
|
|
|
|
overlay.AddButton(@"Clear", @"local scores", FontAwesome.Eraser, Color4.Purple, null, Key.Number2);
|
|
|
|
|
overlay.AddButton(@"Edit", @"Beatmap", FontAwesome.Pencil, Color4.Yellow, null, Key.Number3);
|
|
|
|
|
overlay.AddButton(@"Delete", @"Beatmap", FontAwesome.Trash, Color4.Pink, null, Key.Number4, float.MaxValue);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
Add(overlay);
|
|
|
|
|
|
|
|
|
|
AddStep(@"Toggle", overlay.ToggleVisibility);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|