mirror of
https://github.com/osukey/osukey.git
synced 2025-06-25 05:07:59 +09: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.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.UserInterface
|
namespace osu.Game.Tests.Visual.UserInterface
|
||||||
@ -15,6 +16,16 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LargeTextureStore textures)
|
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;
|
HueAnimation anim;
|
||||||
|
|
||||||
Add(anim = new HueAnimation
|
Add(anim = new HueAnimation
|
||||||
@ -22,10 +33,14 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
FillMode = FillMode.Fit,
|
FillMode = FillMode.Fit,
|
||||||
Texture = textures.Get("Intro/Triangles/logo-background"),
|
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…
x
Reference in New Issue
Block a user