1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-31 05:23:21 +08:00
osu-lazer/osu.Game.Rulesets.Taiko.Tests/Skinning/TestSceneInputDrum.cs

40 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 17:19:50 +08:00
using NUnit.Framework;
using osu.Framework.Allocation;
2018-04-13 17:19:50 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Taiko.UI;
using osuTK;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
2018-04-13 17:19:50 +08:00
{
[TestFixture]
public class TestSceneInputDrum : TaikoSkinnableTestScene
2018-04-13 17:19:50 +08:00
{
[BackgroundDependencyLoader]
private void load()
2018-04-13 17:19:50 +08: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)
2018-04-13 17:19:50 +08:00
{
RelativeSizeAxes = Axes.Both,
Child = new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(200),
Child = new InputDrum(playfield.HitObjectContainer)
2018-04-13 17:19:50 +08:00
}
});
}
}
}