2017-10-04 20:10:01 +08:00
|
|
|
// Copyright (c) 2007-2017 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 OpenTK;
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Overlays;
|
2017-10-10 14:22:32 +08:00
|
|
|
using osu.Game.Screens.Edit.Screens.Compose.Timeline;
|
2017-10-04 20:10:01 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
{
|
|
|
|
public class TestCaseEditorComposeTimeline : OsuTestCase
|
|
|
|
{
|
2017-10-12 15:10:14 +08:00
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ScrollableTimeline), typeof(ScrollingTimelineContainer), typeof(BeatmapWaveformGraph), typeof(TimelineButton) };
|
2017-10-04 20:10:01 +08:00
|
|
|
|
|
|
|
private readonly ScrollableTimeline timeline;
|
|
|
|
|
|
|
|
public TestCaseEditorComposeTimeline()
|
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new MusicController
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
State = Visibility.Visible
|
|
|
|
},
|
|
|
|
timeline = new ScrollableTimeline
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
Size = new Vector2(1000, 100)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuGameBase osuGame)
|
|
|
|
{
|
|
|
|
timeline.Beatmap.BindTo(osuGame.Beatmap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|