2020-11-10 13:07:39 +00: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.
|
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Game.Rulesets.Taiko.Objects;
|
|
|
|
|
using osu.Game.Rulesets.Taiko.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public partial class TestSceneKiaiHitExplosion : TaikoSkinnableTestScene
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestKiaiHits()
|
|
|
|
|
{
|
2021-06-02 07:04:53 +00:00
|
|
|
|
AddStep("rim hit", () => SetContents(_ => getContentFor(createHit(HitType.Rim))));
|
|
|
|
|
AddStep("centre hit", () => SetContents(_ => getContentFor(createHit(HitType.Centre))));
|
2020-11-10 13:07:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Drawable getContentFor(DrawableTestHit hit)
|
|
|
|
|
{
|
|
|
|
|
return new Container
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Child = new KiaiHitExplosion(hit, hit.HitObject.Type)
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private DrawableTestHit createHit(HitType type) => new DrawableTestHit(new Hit { StartTime = Time.Current, Type = type });
|
|
|
|
|
}
|
|
|
|
|
}
|