Hook up beatmap object density to progress display.

This commit is contained in:
Dean Herbert
2017-04-14 17:58:30 +09:00
parent 6421f040dd
commit acd7a5b254
5 changed files with 40 additions and 15 deletions

View File

@ -5,6 +5,7 @@ using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Framework.MathUtils;
using osu.Framework.Testing;
using osu.Game.Modes.Objects;
using osu.Game.Screens.Play;
namespace osu.Desktop.VisualTests.Tests
@ -35,13 +36,11 @@ namespace osu.Desktop.VisualTests.Tests
private void displayNewValues()
{
List<int> newValues = new List<int>();
for (int i = 0; i < 1000; i++)
{
newValues.Add(RNG.Next(0, 6));
}
List<HitObject> objects = new List<HitObject>();
for (double i = 0; i < 2000; i += RNG.NextDouble() * 10 + i / 1000)
objects.Add(new HitObject { StartTime = i });
progress.Values = newValues.ToArray();
progress.Objects = objects;
progress.Progress = RNG.NextDouble();
}
}