1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 22:32:55 +08:00
osu-lazer/osu.Game.Tests/Visual/UserInterface/TestSceneLogoAnimation.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.4 KiB
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.
2022-06-17 15:37:17 +08:00
#nullable disable
2020-06-24 20:11:38 +08:00
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
2020-07-15 17:48:20 +08:00
using osu.Game.Graphics;
2020-06-24 20:11:38 +08:00
using osu.Game.Graphics.Sprites;
namespace osu.Game.Tests.Visual.UserInterface
{
[TestFixture]
2020-07-23 04:10:59 +08:00
public partial class TestSceneLogoAnimation : OsuTestScene
2020-06-24 20:11:38 +08:00
{
[BackgroundDependencyLoader]
2020-06-24 22:27:00 +08:00
private void load(LargeTextureStore textures)
2020-06-24 20:11:38 +08:00
{
2020-07-23 04:10:59 +08:00
LogoAnimation anim2;
2020-07-15 17:48:20 +08:00
2020-07-23 04:10:59 +08:00
Add(anim2 = new LogoAnimation
2020-07-15 17:48:20 +08:00
{
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
Texture = textures.Get("Intro/Triangles/logo-highlight"),
Colour = Colour4.White,
});
2020-07-23 04:10:59 +08:00
LogoAnimation anim;
2020-06-24 20:11:38 +08:00
2020-07-23 04:10:59 +08:00
Add(anim = new LogoAnimation
2020-06-24 20:11:38 +08:00
{
2020-06-24 22:27:00 +08:00
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
2020-07-05 01:06:26 +08:00
Texture = textures.Get("Intro/Triangles/logo-background"),
2020-07-15 17:48:20 +08:00
Colour = OsuColour.Gray(0.6f),
2020-06-24 20:11:38 +08:00
});
2020-07-15 17:48:20 +08:00
AddSliderStep("Progress", 0f, 1f, 0f, newValue =>
{
anim2.AnimationProgress = newValue;
anim.AnimationProgress = newValue;
});
2020-06-24 20:11:38 +08:00
}
}
}