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-11-06 15:58:10 +08:00
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
|
|
using osu.Game.Rulesets.Mania.Edit.Blueprints;
|
|
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
|
|
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
|
|
|
using osu.Game.Rulesets.UI.Scrolling;
|
|
|
|
using osu.Game.Tests.Visual;
|
2018-11-20 15:51:59 +08:00
|
|
|
using osuTK;
|
2018-11-06 15:58:10 +08:00
|
|
|
|
2020-09-25 17:48:04 +08:00
|
|
|
namespace osu.Game.Rulesets.Mania.Tests.Editor
|
2018-11-06 15:58:10 +08:00
|
|
|
{
|
2019-05-15 03:37:25 +08:00
|
|
|
public class TestSceneNoteSelectionBlueprint : ManiaSelectionBlueprintTestScene
|
2018-11-06 15:58:10 +08:00
|
|
|
{
|
|
|
|
protected override Container<Drawable> Content => content ?? base.Content;
|
|
|
|
private readonly Container content;
|
|
|
|
|
2019-05-15 03:37:25 +08:00
|
|
|
public TestSceneNoteSelectionBlueprint()
|
2018-11-06 15:58:10 +08:00
|
|
|
{
|
|
|
|
var note = new Note { Column = 0 };
|
|
|
|
note.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
|
|
|
|
2019-10-01 18:32:47 +08:00
|
|
|
DrawableNote drawableObject;
|
|
|
|
|
2018-11-06 15:58:10 +08:00
|
|
|
base.Content.Child = content = new ScrollingTestContainer(ScrollingDirection.Down)
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
Size = new Vector2(50, 20),
|
|
|
|
Child = drawableObject = new DrawableNote(note)
|
|
|
|
};
|
2019-10-01 18:32:47 +08:00
|
|
|
|
|
|
|
AddBlueprint(new NoteSelectionBlueprint(drawableObject));
|
2018-11-06 15:58:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|