Very basic implementation of the graph

This commit is contained in:
DrabWeb
2017-02-07 01:49:41 -04:00
parent 7c83dc8aed
commit 3d0feb4de9
5 changed files with 174 additions and 29 deletions

View File

@ -1,26 +1,35 @@
using System;
using osu.Framework.Graphics;
using osu.Framework.GameModes.Testing;
using System;
using OpenTK.Graphics;
using osu.Game.Graphics.UserInterface;
using osu.Framework.Graphics;
using osu.Framework.GameModes.Testing;
using osu.Framework.Graphics.Sprites;
using osu.Framework.GameModes.Testing;
using osu.Framework.Graphics.Colour;
namespace osu.Desktop.VisualTests
{
public class TestCaseSongProgressBar : TestCase
{
public override string Name => @"SongProgressBar";
public override string Description => @"Tests the song progress bar";
public override void Reset()
{
base.Reset();
Add(new SongProgressBar
namespace osu.Desktop.VisualTests
{
public class TestCaseSongProgressBar : TestCase
{
public override string Name => @"SongProgressBar";
public override string Description => @"Tests the song progress bar";
public override void Reset()
{
base.Reset();
Add(new Box
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.X
});
}
}
}
ColourInfo = ColourInfo.GradientVertical(Color4.WhiteSmoke, Color4.Gray),
RelativeSizeAxes = Framework.Graphics.Axes.Both,
});
Add(new SongProgressBar
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.X
});
}
}
}