1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 08:07:40 +08:00
osu-lazer/osu.Game.Tests/Visual/UserInterface/TestSceneHueAnimation.cs

32 lines
955 B
C#
Raw Normal View History

2020-06-24 20:11:38 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Tests.Visual.UserInterface
{
[TestFixture]
public class TestSceneHueAnimation : OsuTestScene
{
[BackgroundDependencyLoader]
2020-06-24 22:27:00 +08:00
private void load(LargeTextureStore textures)
2020-06-24 20:11:38 +08:00
{
HueAnimation anim;
Add(anim = new HueAnimation
{
2020-06-24 22:27:00 +08:00
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
Texture = textures.Get("Intro/Triangles/logo-triangles"),
2020-06-24 20:11:38 +08:00
Colour = Colour4.White,
});
AddSliderStep("Progress", 0f, 1f, 0f, newValue => anim.AnimationProgress = newValue);
}
}
}