Fix TestCaseGamefield.

This commit is contained in:
Dean Herbert
2017-02-27 18:30:10 +09:00
parent 4da09713a9
commit 21c6f66017

View File

@ -4,6 +4,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.Screens.Testing; using osu.Framework.Screens.Testing;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.MathUtils; using osu.Framework.MathUtils;
using osu.Framework.Timing; using osu.Framework.Timing;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
@ -27,9 +28,6 @@ namespace osu.Desktop.VisualTests.Tests
{ {
base.Reset(); base.Reset();
//ensure we are at offset 0
Clock = new FramedClock();
List<HitObject> objects = new List<HitObject>(); List<HitObject> objects = new List<HitObject>();
int time = 500; int time = 500;
@ -52,33 +50,42 @@ namespace osu.Desktop.VisualTests.Tests
Add(new Drawable[] Add(new Drawable[]
{ {
new OsuHitRenderer new Container
{ {
Beatmap = beatmap, RelativeSizeAxes = Axes.Both,
Scale = new Vector2(0.5f), //ensure we are at offset 0
Anchor = Anchor.TopLeft, Clock = new FramedClock(),
Origin = Anchor.TopLeft Children = new Drawable[]
}, {
new TaikoHitRenderer new OsuHitRenderer
{ {
Beatmap = beatmap, Beatmap = beatmap,
Scale = new Vector2(0.5f), Scale = new Vector2(0.5f),
Anchor = Anchor.TopRight, Anchor = Anchor.TopLeft,
Origin = Anchor.TopRight Origin = Anchor.TopLeft
}, },
new CatchHitRenderer new TaikoHitRenderer
{ {
Beatmap = beatmap, Beatmap = beatmap,
Scale = new Vector2(0.5f), Scale = new Vector2(0.5f),
Anchor = Anchor.BottomLeft, Anchor = Anchor.TopRight,
Origin = Anchor.BottomLeft Origin = Anchor.TopRight
}, },
new ManiaHitRenderer new CatchHitRenderer
{ {
Beatmap = beatmap, Beatmap = beatmap,
Scale = new Vector2(0.5f), Scale = new Vector2(0.5f),
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomRight Origin = Anchor.BottomLeft
},
new ManiaHitRenderer
{
Beatmap = beatmap,
Scale = new Vector2(0.5f),
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight
}
}
} }
}); });
} }