1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 08:12:55 +08:00
osu-lazer/osu.Game.Tests/Visual/Editing/TestSceneTimelineTickDisplay.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
C#
Raw Normal View History

2020-01-27 16:34:25 +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.
2022-06-17 15:37:17 +08:00
#nullable disable
2020-01-27 16:34:25 +08:00
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Overlays;
2020-01-27 16:34:25 +08:00
using osu.Game.Screens.Edit.Compose.Components;
using osuTK;
namespace osu.Game.Tests.Visual.Editing
2020-01-27 16:34:25 +08:00
{
[TestFixture]
2020-01-27 17:10:42 +08:00
public class TestSceneTimelineTickDisplay : TimelineTestScene
2020-01-27 16:34:25 +08:00
{
public override Drawable CreateTestComponent() => Empty(); // tick display is implicitly inside the timeline.
2020-01-27 16:34:25 +08:00
[Cached]
private readonly OverlayColourProvider overlayColour = new OverlayColourProvider(OverlayColourScheme.Green);
2020-01-27 16:34:25 +08:00
[BackgroundDependencyLoader]
private void load()
{
BeatDivisor.Value = 4;
Add(new BeatDivisorControl(BeatDivisor)
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Margin = new MarginPadding(30),
Size = new Vector2(90)
});
}
}
}