mirror of
https://github.com/ppy/osu
synced 2025-02-04 12:21:58 +00:00
remove size from hue animation
This commit is contained in:
parent
768e28faba
commit
6f0ec36407
@ -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,
|
||||
});
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user