osu/osu.Game.Rulesets.Taiko.Tests/Skinning/TestSceneInputDrum.cs

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

42 lines
1.2 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.
2018-04-13 09:19:50 +00:00
2022-06-17 07:37:17 +00:00
#nullable disable
2018-03-02 06:34:31 +00:00
using NUnit.Framework;
using osu.Framework.Allocation;
2017-12-26 10:33:28 +00:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Taiko.UI;
using osuTK;
2018-04-13 09:19:50 +00:00
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
2017-12-26 10:33:28 +00:00
{
2018-03-02 06:34:31 +00:00
[TestFixture]
public partial class TestSceneInputDrum : TaikoSkinnableTestScene
2017-12-26 10:33:28 +00:00
{
[BackgroundDependencyLoader]
private void load()
2017-12-26 10:33:28 +00:00
{
var playfield = new TaikoPlayfield();
var beatmap = CreateWorkingBeatmap(new TaikoRuleset().RulesetInfo).GetPlayableBeatmap(new TaikoRuleset().RulesetInfo);
foreach (var h in beatmap.HitObjects)
playfield.Add(h);
SetContents(_ => new TaikoInputManager(new TaikoRuleset().RulesetInfo)
2017-12-26 10:33:28 +00:00
{
RelativeSizeAxes = Axes.Both,
Child = new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(200),
Child = new InputDrum()
2017-12-26 10:33:28 +00:00
}
});
}
}
}