1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-09 04:57:41 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseSongProgressBar.cs
2017-02-07 01:49:41 -04:00

36 lines
1.0 KiB
C#

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 Box
{
ColourInfo = ColourInfo.GradientVertical(Color4.WhiteSmoke, Color4.Gray),
RelativeSizeAxes = Framework.Graphics.Axes.Both,
});
Add(new SongProgressBar
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.X
});
}
}
}