2017-09-18 21:32:49 +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
|
|
|
|
|
2017-10-09 16:52:48 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2017-09-18 21:32:49 +08:00
|
|
|
using osu.Game.Overlays;
|
2017-10-09 16:52:48 +08:00
|
|
|
using osu.Game.Overlays.MedalSplash;
|
2017-09-18 21:32:49 +08:00
|
|
|
using osu.Game.Users;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
{
|
2017-12-20 20:47:45 +08:00
|
|
|
public class TestCaseMedalOverlay : OsuTestCase
|
2017-09-18 21:32:49 +08:00
|
|
|
{
|
2017-10-09 16:52:48 +08:00
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
{
|
|
|
|
typeof(MedalOverlay),
|
|
|
|
typeof(DrawableMedal),
|
|
|
|
};
|
|
|
|
|
2017-09-18 21:32:49 +08:00
|
|
|
public TestCaseMedalOverlay()
|
|
|
|
{
|
|
|
|
AddStep(@"display", () =>
|
|
|
|
{
|
|
|
|
LoadComponentAsync(new MedalOverlay(new Medal
|
|
|
|
{
|
|
|
|
Name = @"Animations",
|
|
|
|
InternalName = @"all-intro-doubletime",
|
|
|
|
Description = @"More complex than you think.",
|
|
|
|
}), Add);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|