Added displaying given values to the graph

This commit is contained in:
DrabWeb
2017-02-09 18:51:05 -04:00
parent 7fea233181
commit 4d7766b92b
2 changed files with 62 additions and 9 deletions

View File

@ -11,6 +11,8 @@ using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Game.Overlays;
using System.Collections.Generic;
using System;
namespace osu.Game.Screens.Play
{
@ -49,6 +51,11 @@ namespace osu.Game.Screens.Play
}
}
public void DisplayValues(List<int> values)
{
graph.Values = values;
}
public SongProgress()
{
RelativeSizeAxes = Axes.X;
@ -77,7 +84,18 @@ namespace osu.Game.Screens.Play
current?.Track?.Start();
}
}
};
};
// TODO: Remove
var random = new Random();
List<int> newValues = new List<int>();
for (int i = 0; i < 1000; i++)
{
newValues.Add(random.Next(1, 11));
}
DisplayValues(newValues);
}
}
}