mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 02:11:05 +08:00
4911f5208b
I need the actual overlay to be doing way more things (receiving the actual websocket events, queueing the medals for display, handling activation mode), so the pre-existing API design of the overlay just will not fly.
27 lines
765 B
C#
27 lines
765 B
C#
// 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.
|
|
|
|
using NUnit.Framework;
|
|
using osu.Game.Overlays;
|
|
using osu.Game.Users;
|
|
|
|
namespace osu.Game.Tests.Visual.Gameplay
|
|
{
|
|
[TestFixture]
|
|
public partial class TestSceneMedalOverlay : OsuTestScene
|
|
{
|
|
public TestSceneMedalOverlay()
|
|
{
|
|
AddStep(@"display", () =>
|
|
{
|
|
LoadComponentAsync(new MedalAnimation(new Medal
|
|
{
|
|
Name = @"Animations",
|
|
InternalName = @"all-intro-doubletime",
|
|
Description = @"More complex than you think.",
|
|
}), Add);
|
|
});
|
|
}
|
|
}
|
|
}
|