rename classes

This commit is contained in:
jorolf
2020-07-22 22:10:59 +02:00
parent 860f10ceee
commit 50f72ac9cb
3 changed files with 15 additions and 15 deletions

View File

@ -11,14 +11,14 @@ using osu.Game.Graphics.Sprites;
namespace osu.Game.Tests.Visual.UserInterface namespace osu.Game.Tests.Visual.UserInterface
{ {
[TestFixture] [TestFixture]
public class TestSceneHueAnimation : OsuTestScene public class TestSceneLogoAnimation : OsuTestScene
{ {
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(LargeTextureStore textures) private void load(LargeTextureStore textures)
{ {
HueAnimation anim2; LogoAnimation anim2;
Add(anim2 = new HueAnimation Add(anim2 = new LogoAnimation
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit, FillMode = FillMode.Fit,
@ -26,9 +26,9 @@ namespace osu.Game.Tests.Visual.UserInterface
Colour = Colour4.White, Colour = Colour4.White,
}); });
HueAnimation anim; LogoAnimation anim;
Add(anim = new HueAnimation Add(anim = new LogoAnimation
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit, FillMode = FillMode.Fit,

View File

@ -11,13 +11,13 @@ using osu.Framework.Graphics.Textures;
namespace osu.Game.Graphics.Sprites namespace osu.Game.Graphics.Sprites
{ {
public class HueAnimation : Sprite public class LogoAnimation : Sprite
{ {
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(ShaderManager shaders, TextureStore textures) private void load(ShaderManager shaders, TextureStore textures)
{ {
TextureShader = shaders.Load(VertexShaderDescriptor.TEXTURE_2, @"HueAnimation"); TextureShader = shaders.Load(VertexShaderDescriptor.TEXTURE_2, @"LogoAnimation");
RoundedTextureShader = shaders.Load(VertexShaderDescriptor.TEXTURE_2, @"HueAnimation"); // Masking isn't supported for now RoundedTextureShader = shaders.Load(VertexShaderDescriptor.TEXTURE_2, @"LogoAnimation"); // Masking isn't supported for now
} }
private float animationProgress; private float animationProgress;
@ -36,15 +36,15 @@ namespace osu.Game.Graphics.Sprites
public override bool IsPresent => true; public override bool IsPresent => true;
protected override DrawNode CreateDrawNode() => new HueAnimationDrawNode(this); protected override DrawNode CreateDrawNode() => new LogoAnimationDrawNode(this);
private class HueAnimationDrawNode : SpriteDrawNode private class LogoAnimationDrawNode : SpriteDrawNode
{ {
private HueAnimation source => (HueAnimation)Source; private LogoAnimation source => (LogoAnimation)Source;
private float progress; private float progress;
public HueAnimationDrawNode(HueAnimation source) public LogoAnimationDrawNode(LogoAnimation source)
: base(source) : base(source)
{ {
} }

View File

@ -260,7 +260,7 @@ namespace osu.Game.Screens.Menu
private class LazerLogo : CompositeDrawable private class LazerLogo : CompositeDrawable
{ {
private HueAnimation highlight, background; private LogoAnimation highlight, background;
public float Progress public float Progress
{ {
@ -282,13 +282,13 @@ namespace osu.Game.Screens.Menu
{ {
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
highlight = new HueAnimation highlight = new LogoAnimation
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Texture = textures.Get(@"Intro/Triangles/logo-highlight"), Texture = textures.Get(@"Intro/Triangles/logo-highlight"),
Colour = Color4.White, Colour = Color4.White,
}, },
background = new HueAnimation background = new LogoAnimation
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Texture = textures.Get(@"Intro/Triangles/logo-background"), Texture = textures.Get(@"Intro/Triangles/logo-background"),