2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-01-24 16:43:03 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
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.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]
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class TestSceneInputDrum : TaikoSkinnableTestScene
|
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
|
|
|
|
{
|
2021-08-25 14:24:13 +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);
|
|
|
|
|
|
2021-06-02 15:04:53 +08:00
|
|
|
|
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,
|
2024-01-20 04:26:35 +08:00
|
|
|
|
Size = new Vector2(180f, 200f),
|
|
|
|
|
Child = new InputDrum
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|