mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
remove size from hue animation
This commit is contained in:
@ -13,13 +13,15 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
public class TestSceneHueAnimation : OsuTestScene
|
public class TestSceneHueAnimation : OsuTestScene
|
||||||
{
|
{
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures)
|
private void load(LargeTextureStore textures)
|
||||||
{
|
{
|
||||||
HueAnimation anim;
|
HueAnimation anim;
|
||||||
|
|
||||||
Add(anim = new HueAnimation
|
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,
|
Colour = Colour4.White,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -8,17 +8,11 @@ using osu.Framework.Graphics.OpenGL.Vertices;
|
|||||||
using osu.Framework.Graphics.Shaders;
|
using osu.Framework.Graphics.Shaders;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osuTK;
|
|
||||||
|
|
||||||
namespace osu.Game.Graphics.Sprites
|
namespace osu.Game.Graphics.Sprites
|
||||||
{
|
{
|
||||||
public class HueAnimation : Sprite
|
public class HueAnimation : Sprite
|
||||||
{
|
{
|
||||||
public HueAnimation()
|
|
||||||
{
|
|
||||||
Size = new Vector2(960);
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(ShaderManager shaders, TextureStore textures)
|
private void load(ShaderManager shaders, TextureStore textures)
|
||||||
{
|
{
|
||||||
|
@ -293,11 +293,13 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
highlight = new HueAnimation
|
highlight = new HueAnimation
|
||||||
{
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
Texture = textures.Get(lazer_logo_texture),
|
Texture = textures.Get(lazer_logo_texture),
|
||||||
Colour = OsuColour.Gray(0.6f).Opacity(0.8f),
|
Colour = OsuColour.Gray(0.6f).Opacity(0.8f),
|
||||||
},
|
},
|
||||||
animation = new HueAnimation
|
animation = new HueAnimation
|
||||||
{
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
Texture = textures.Get(lazer_logo_texture),
|
Texture = textures.Get(lazer_logo_texture),
|
||||||
Colour = Color4.White.Opacity(0.8f),
|
Colour = Color4.White.Opacity(0.8f),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user