Added toggling the progress bar, added buttons to the visual test

This commit is contained in:
DrabWeb
2017-02-09 20:12:15 -04:00
parent 0327c46d36
commit c61052d62e
2 changed files with 23 additions and 6 deletions

View File

@ -24,11 +24,6 @@ namespace osu.Desktop.VisualTests
{
base.Reset();
Add(new Box
{
Colour = Color4.Gray,
RelativeSizeAxes = Axes.Both
});
Add(progress = new SongProgress
{
Anchor = Anchor.BottomCentre,
@ -36,6 +31,14 @@ namespace osu.Desktop.VisualTests
RelativeSizeAxes = Axes.X
});
AddButton("Toggle Bar", progress.ToggleVisibility);
AddButton("New Values", displayNewValues);
displayNewValues();
}
private void displayNewValues()
{
var random = new Random();
List<int> newValues = new List<int>();