2019-01-24 16:43:03 +08: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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2020-04-07 14:38:29 +08:00
|
|
|
using System.Linq;
|
2018-04-13 17:19:50 +08:00
|
|
|
using NUnit.Framework;
|
2020-04-03 17:23:03 +08:00
|
|
|
using osu.Framework.Allocation;
|
2018-04-13 17:19:50 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
2020-04-07 14:38:29 +08:00
|
|
|
using osu.Game.Rulesets.Taiko.Skinning;
|
2018-04-13 17:19:50 +08:00
|
|
|
using osu.Game.Rulesets.Taiko.UI;
|
2020-04-15 15:01:49 +08:00
|
|
|
using osuTK;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
2020-04-15 15:01:49 +08:00
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
2018-04-13 17:19:50 +08:00
|
|
|
{
|
|
|
|
[TestFixture]
|
2020-04-07 14:38:29 +08:00
|
|
|
public class TestSceneInputDrum : TaikoSkinnableTestScene
|
2018-04-13 17:19:50 +08:00
|
|
|
{
|
2020-04-07 14:38:29 +08:00
|
|
|
public override IReadOnlyList<Type> RequiredTypes => base.RequiredTypes.Concat(new[]
|
2018-04-13 17:19:50 +08:00
|
|
|
{
|
|
|
|
typeof(InputDrum),
|
2020-04-07 14:38:29 +08:00
|
|
|
typeof(LegacyInputDrum),
|
|
|
|
}).ToList();
|
2018-04-13 17:19:50 +08:00
|
|
|
|
2020-04-03 17:23:03 +08:00
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
2018-04-13 17:19:50 +08:00
|
|
|
{
|
2020-04-03 17:23:03 +08:00
|
|
|
SetContents(() => new TaikoInputManager(new RulesetInfo { ID = 1 })
|
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(new ControlPointInfo())
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|