2018-03-19 18:46:26 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Screens.Edit.Screens.Compose.BeatSnap;
|
2018-03-19 19:14:46 +08:00
|
|
|
|
using OpenTK;
|
2018-03-19 18:46:26 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
|
{
|
|
|
|
|
public class TestCaseBeatSnapVisualiser : OsuTestCase
|
|
|
|
|
{
|
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
|
{
|
|
|
|
|
typeof(BeatSnapVisualiser),
|
|
|
|
|
typeof(TickContainer)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
|
|
|
|
Child = new BeatSnapVisualiser
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
2018-03-19 18:49:46 +08:00
|
|
|
|
Origin = Anchor.Centre,
|
2018-03-19 19:14:46 +08:00
|
|
|
|
Y = -200,
|
|
|
|
|
Size = new Vector2(100, 110)
|
2018-03-19 18:46:26 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|