1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 04:07:26 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseBeatmapOptionsOverlay.cs

33 lines
1.2 KiB
C#
Raw Normal View History

2017-03-02 20:40:55 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using OpenTK.Input;
2017-03-28 20:03:34 +08:00
using osu.Framework.Testing;
using osu.Game.Graphics;
2017-03-03 09:24:34 +08:00
using osu.Game.Screens.Select.Options;
2017-03-02 20:40:55 +08:00
2017-03-07 09:59:19 +08:00
namespace osu.Desktop.VisualTests.Tests
2017-03-02 20:40:55 +08:00
{
2017-03-07 09:59:19 +08:00
internal class TestCaseBeatmapOptionsOverlay : TestCase
2017-03-02 20:40:55 +08:00
{
public override string Description => @"Beatmap options in song select";
public override void Reset()
{
base.Reset();
var overlay = new BeatmapOptionsOverlay();
2017-03-02 20:40:55 +08: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 20:40:55 +08:00
Add(overlay);
AddButton(@"Toggle", overlay.ToggleVisibility);
}
}
}