2019-01-24 17:43:03 +09: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 18:19:50 +09:00
|
|
|
|
|
2018-03-02 15:34:31 +09:00
|
|
|
|
using NUnit.Framework;
|
2020-04-03 18:23:03 +09:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-12-26 19:33:28 +09:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Game.Rulesets.Taiko.UI;
|
2020-04-15 16:01:49 +09:00
|
|
|
|
using osuTK;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2020-04-15 16:01:49 +09:00
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
2017-12-26 19:33:28 +09:00
|
|
|
|
{
|
2018-03-02 15:34:31 +09:00
|
|
|
|
[TestFixture]
|
2020-04-07 15:38:29 +09:00
|
|
|
|
public partial class TestSceneInputDrum : TaikoSkinnableTestScene
|
2017-12-26 19:33:28 +09:00
|
|
|
|
{
|
2020-04-03 18:23:03 +09:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
2017-12-26 19:33:28 +09:00
|
|
|
|
{
|
2021-08-25 15:24:13 +09:00
|
|
|
|
var playfield = new TaikoPlayfield();
|
|
|
|
|
|
|
|
|
|
var beatmap = CreateWorkingBeatmap(new TaikoRuleset().RulesetInfo).GetPlayableBeatmap(new TaikoRuleset().RulesetInfo);
|
|
|
|
|
|
|
|
|
|
foreach (var h in beatmap.HitObjects)
|
|
|
|
|
playfield.Add(h);
|
|
|
|
|
|
2021-06-02 16:04:53 +09:00
|
|
|
|
SetContents(_ => new TaikoInputManager(new TaikoRuleset().RulesetInfo)
|
2017-12-26 19:33:28 +09:00
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Child = new Container
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
2024-01-19 23:26:35 +03:00
|
|
|
|
Size = new Vector2(180f, 200f),
|
|
|
|
|
Child = new InputDrum
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
}
|
2017-12-26 19:33:28 +09:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|