osu/osu.Game.Rulesets.Taiko.Tests/TestSceneDrumTouchInputArea.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.6 KiB
C#
Raw Normal View History

// 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.Testing;
using osu.Game.Rulesets.Taiko.UI;
using osu.Game.Tests.Visual;
namespace osu.Game.Rulesets.Taiko.Tests
{
[TestFixture]
public partial class TestSceneDrumTouchInputArea : OsuTestScene
{
private DrumTouchInputArea drumTouchInputArea = null!;
[SetUpSteps]
public void SetUpSteps()
{
AddStep("create drum", () =>
2022-06-02 05:36:07 +00:00
{
2022-07-22 07:18:22 +00:00
Child = new TaikoInputManager(new TaikoRuleset().RulesetInfo)
{
2022-07-22 07:18:22 +00:00
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
2022-07-22 07:18:22 +00:00
new InputDrum
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Height = 0.2f,
},
drumTouchInputArea = new DrumTouchInputArea
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
},
},
};
});
}
[Test]
public void TestDrum()
2022-06-02 05:36:07 +00:00
{
AddStep("show drum", () => drumTouchInputArea.Show());
}
2023-01-11 11:26:26 +00:00
protected override Ruleset CreateRuleset() => new TaikoRuleset();
}
}