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-29 09:23:23 +00:00
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
2018-11-07 07:08:56 +00:00
|
|
|
using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners;
|
2018-10-29 09:23:23 +00:00
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
|
|
|
using osu.Game.Tests.Visual;
|
2018-11-20 07:51:59 +00:00
|
|
|
using osuTK;
|
2018-10-29 09:23:23 +00:00
|
|
|
|
2020-09-25 09:48:04 +00:00
|
|
|
namespace osu.Game.Rulesets.Osu.Tests.Editor
|
2018-10-29 09:23:23 +00:00
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
public class TestSceneSpinnerSelectionBlueprint : SelectionBlueprintTestScene
|
2018-10-29 09:23:23 +00:00
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
public TestSceneSpinnerSelectionBlueprint()
|
2018-10-29 09:23:23 +00:00
|
|
|
{
|
|
|
|
var spinner = new Spinner
|
|
|
|
{
|
|
|
|
Position = new Vector2(256, 256),
|
|
|
|
StartTime = -1000,
|
|
|
|
EndTime = 2000
|
|
|
|
};
|
2019-10-01 10:32:47 +00:00
|
|
|
|
2018-10-29 09:23:23 +00:00
|
|
|
spinner.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty { CircleSize = 2 });
|
|
|
|
|
2019-10-01 10:32:47 +00:00
|
|
|
DrawableSpinner drawableSpinner;
|
|
|
|
|
2018-10-29 09:23:23 +00:00
|
|
|
Add(new Container
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Size = new Vector2(0.5f),
|
|
|
|
Child = drawableSpinner = new DrawableSpinner(spinner)
|
|
|
|
});
|
2019-10-01 10:32:47 +00:00
|
|
|
|
2021-05-13 10:53:32 +00:00
|
|
|
AddBlueprint(new SpinnerSelectionBlueprint(spinner) { Size = new Vector2(0.5f) }, drawableSpinner);
|
2018-10-29 09:23:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|