2017-03-02 12:40:55 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-03-18 17:31:27 +00:00
|
|
|
|
using osu.Game.Graphics;
|
2017-03-03 01:24:34 +00:00
|
|
|
|
using osu.Game.Screens.Select.Options;
|
2017-08-04 06:37:31 +00:00
|
|
|
|
using OpenTK.Graphics;
|
|
|
|
|
using OpenTK.Input;
|
2017-03-02 12:40:55 +00:00
|
|
|
|
|
2017-08-04 06:37:31 +00:00
|
|
|
|
namespace osu.Desktop.Tests.Visual
|
2017-03-02 12:40:55 +00:00
|
|
|
|
{
|
2017-08-04 06:37:31 +00:00
|
|
|
|
internal class TestCaseBeatmapOptionsOverlay : OsuTestCase
|
2017-03-02 12:40:55 +00:00
|
|
|
|
{
|
|
|
|
|
public override string Description => @"Beatmap options in song select";
|
|
|
|
|
|
2017-07-07 12:05:55 +00:00
|
|
|
|
public TestCaseBeatmapOptionsOverlay()
|
2017-03-02 12:40:55 +00:00
|
|
|
|
{
|
2017-03-03 07:11:23 +00:00
|
|
|
|
var overlay = new BeatmapOptionsOverlay();
|
2017-03-02 12:40:55 +00:00
|
|
|
|
|
2017-03-18 17:31:27 +00:00
|
|
|
|
overlay.AddButton(@"Remove", @"from unplayed", FontAwesome.fa_times_circle_o, Color4.Purple, null, Key.Number1);
|
|
|
|
|
overlay.AddButton(@"Clear", @"local scores", FontAwesome.fa_eraser, Color4.Purple, null, Key.Number2);
|
|
|
|
|
overlay.AddButton(@"Edit", @"Beatmap", FontAwesome.fa_pencil, Color4.Yellow, null, Key.Number3);
|
|
|
|
|
overlay.AddButton(@"Delete", @"Beatmap", FontAwesome.fa_trash, Color4.Pink, null, Key.Number4, float.MaxValue);
|
|
|
|
|
|
2017-03-02 12:40:55 +00:00
|
|
|
|
Add(overlay);
|
|
|
|
|
|
2017-03-31 08:55:07 +00:00
|
|
|
|
AddStep(@"Toggle", overlay.ToggleVisibility);
|
2017-03-02 12:40:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|