2019-01-24 08:43:03 +00: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-10-25 09:48:11 +00:00
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Timing;
|
|
|
|
using osu.Game.Rulesets.Edit;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
{
|
2020-03-23 01:01:33 +00:00
|
|
|
public abstract class SelectionBlueprintTestScene : OsuManualInputManagerTestScene
|
2018-10-25 09:48:11 +00:00
|
|
|
{
|
|
|
|
protected override Container<Drawable> Content => content ?? base.Content;
|
|
|
|
private readonly Container content;
|
|
|
|
|
2019-05-14 19:37:25 +00:00
|
|
|
protected SelectionBlueprintTestScene()
|
2018-10-25 09:48:11 +00:00
|
|
|
{
|
|
|
|
base.Content.Add(content = new Container
|
|
|
|
{
|
|
|
|
Clock = new FramedClock(new StopwatchClock()),
|
|
|
|
RelativeSizeAxes = Axes.Both
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-01-20 15:53:59 +00:00
|
|
|
protected void AddBlueprint(OverlaySelectionBlueprint blueprint)
|
2018-10-25 09:48:11 +00:00
|
|
|
{
|
2019-10-01 10:32:47 +00:00
|
|
|
Add(blueprint.With(d =>
|
|
|
|
{
|
|
|
|
d.Depth = float.MinValue;
|
|
|
|
d.Select();
|
|
|
|
}));
|
2018-10-25 09:48:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|