2020-06-24 12:11:38 +00: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 14:27:00 +00:00
|
|
|
private void load(LargeTextureStore textures)
|
2020-06-24 12:11:38 +00:00
|
|
|
{
|
|
|
|
HueAnimation anim;
|
|
|
|
|
|
|
|
Add(anim = new HueAnimation
|
|
|
|
{
|
2020-06-24 14:27:00 +00:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
FillMode = FillMode.Fit,
|
2020-07-04 17:06:26 +00:00
|
|
|
Texture = textures.Get("Intro/Triangles/logo-background"),
|
2020-06-24 12:11:38 +00:00
|
|
|
Colour = Colour4.White,
|
|
|
|
});
|
|
|
|
|
|
|
|
AddSliderStep("Progress", 0f, 1f, 0f, newValue => anim.AnimationProgress = newValue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|