remove size from hue animation

This commit is contained in:
jorolf 2020-06-24 16:27:00 +02:00
parent 768e28faba
commit 6f0ec36407
3 changed files with 6 additions and 8 deletions

View File

@ -13,13 +13,15 @@ namespace osu.Game.Tests.Visual.UserInterface
public class TestSceneHueAnimation : OsuTestScene
{
[BackgroundDependencyLoader]
private void load(TextureStore textures)
private void load(LargeTextureStore textures)
{
HueAnimation anim;
Add(anim = new HueAnimation
{
Texture = textures.Get("Intro/Triangles/logo-triangles.png"),
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
Texture = textures.Get("Intro/Triangles/logo-triangles"),
Colour = Colour4.White,
});

View File

@ -8,17 +8,11 @@ using osu.Framework.Graphics.OpenGL.Vertices;
using osu.Framework.Graphics.Shaders;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osuTK;
namespace osu.Game.Graphics.Sprites
{
public class HueAnimation : Sprite
{
public HueAnimation()
{
Size = new Vector2(960);
}
[BackgroundDependencyLoader]
private void load(ShaderManager shaders, TextureStore textures)
{

View File

@ -293,11 +293,13 @@ namespace osu.Game.Screens.Menu
{
highlight = new HueAnimation
{
RelativeSizeAxes = Axes.Both,
Texture = textures.Get(lazer_logo_texture),
Colour = OsuColour.Gray(0.6f).Opacity(0.8f),
},
animation = new HueAnimation
{
RelativeSizeAxes = Axes.Both,
Texture = textures.Get(lazer_logo_texture),
Colour = Color4.White.Opacity(0.8f),
},