Couple the timeline to the audio

This commit is contained in:
smoogipoo
2018-05-23 12:00:11 +09:00
parent 1dfa3ff995
commit 49f893d5e4
2 changed files with 85 additions and 8 deletions

View File

@ -14,14 +14,15 @@ using osu.Game.Screens.Edit.Screens.Compose.Timeline;
namespace osu.Game.Tests.Visual
{
[TestFixture]
public class TestCaseEditorComposeTimeline : OsuTestCase
public class TestCaseEditorComposeTimeline : EditorClockTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(TimelineArea), typeof(Timeline), typeof(BeatmapWaveformGraph), typeof(TimelineButton) };
private readonly TimelineArea timelineArea;
public TestCaseEditorComposeTimeline()
[BackgroundDependencyLoader]
private void load(OsuGameBase osuGame)
{
TimelineArea timelineArea;
Children = new Drawable[]
{
new MusicController
@ -38,11 +39,7 @@ namespace osu.Game.Tests.Visual
Size = new Vector2(0.8f, 100)
}
};
}
[BackgroundDependencyLoader]
private void load(OsuGameBase osuGame)
{
timelineArea.Beatmap.BindTo(osuGame.Beatmap);
}
}