mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Add second layer to test scene
This commit is contained in:
parent
52b313f290
commit
19ab973bb9
@ -5,6 +5,7 @@ using NUnit.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
@ -15,6 +16,16 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LargeTextureStore textures)
|
||||
{
|
||||
HueAnimation anim2;
|
||||
|
||||
Add(anim2 = new HueAnimation
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
FillMode = FillMode.Fit,
|
||||
Texture = textures.Get("Intro/Triangles/logo-highlight"),
|
||||
Colour = Colour4.White,
|
||||
});
|
||||
|
||||
HueAnimation anim;
|
||||
|
||||
Add(anim = new HueAnimation
|
||||
@ -22,10 +33,14 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
FillMode = FillMode.Fit,
|
||||
Texture = textures.Get("Intro/Triangles/logo-background"),
|
||||
Colour = Colour4.White,
|
||||
Colour = OsuColour.Gray(0.6f),
|
||||
});
|
||||
|
||||
AddSliderStep("Progress", 0f, 1f, 0f, newValue => anim.AnimationProgress = newValue);
|
||||
AddSliderStep("Progress", 0f, 1f, 0f, newValue =>
|
||||
{
|
||||
anim2.AnimationProgress = newValue;
|
||||
anim.AnimationProgress = newValue;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user