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

36 lines
1.0 KiB
C#
Raw Normal View History

2017-02-07 13:49:41 +08:00
using System;
using OpenTK.Graphics;
2017-02-04 03:22:02 +08:00
using osu.Game.Graphics.UserInterface;
2017-02-07 13:49:41 +08:00
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";
2017-02-04 03:22:02 +08:00
2017-02-07 13:49:41 +08:00
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
2017-02-04 03:22:02 +08:00
{
2017-02-07 13:49:41 +08:00
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.X
});
}
}
}