2020-01-27 08:34:25 +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.
|
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
2022-05-24 21:14:28 +00:00
|
|
|
|
using osu.Game.Overlays;
|
2020-01-27 08:34:25 +00:00
|
|
|
|
using osu.Game.Screens.Edit.Compose.Components;
|
|
|
|
|
using osuTK;
|
|
|
|
|
|
2020-04-23 08:07:55 +00:00
|
|
|
|
namespace osu.Game.Tests.Visual.Editing
|
2020-01-27 08:34:25 +00:00
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2020-01-27 09:10:42 +00:00
|
|
|
|
public partial class TestSceneTimelineTickDisplay : TimelineTestScene
|
2020-01-27 08:34:25 +00:00
|
|
|
|
{
|
2020-10-09 07:45:11 +00:00
|
|
|
|
public override Drawable CreateTestComponent() => Empty(); // tick display is implicitly inside the timeline.
|
2020-01-27 08:34:25 +00:00
|
|
|
|
|
2022-05-24 21:14:28 +00:00
|
|
|
|
[Cached]
|
|
|
|
|
private readonly OverlayColourProvider overlayColour = new OverlayColourProvider(OverlayColourScheme.Green);
|
|
|
|
|
|
2020-01-27 08:34:25 +00:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
|
|
|
|
BeatDivisor.Value = 4;
|
|
|
|
|
|
2023-07-14 05:02:48 +00:00
|
|
|
|
Add(new BeatDivisorControl
|
2020-01-27 08:34:25 +00:00
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.TopRight,
|
|
|
|
|
Origin = Anchor.TopRight,
|
|
|
|
|
Margin = new MarginPadding(30),
|
|
|
|
|
Size = new Vector2(90)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|