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

39 lines
1.2 KiB
C#
Raw Normal View History

2017-02-08 01:26:17 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
2017-02-07 13:49:41 +08:00
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
});
}
}
}