mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
change textures
This commit is contained in:
@ -21,7 +21,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
FillMode = FillMode.Fit,
|
FillMode = FillMode.Fit,
|
||||||
Texture = textures.Get("Intro/Triangles/logo-triangles"),
|
Texture = textures.Get("Intro/Triangles/logo-background"),
|
||||||
Colour = Colour4.White,
|
Colour = Colour4.White,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,14 +217,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
// matching flyte curve y = 0.25x^2 + (max(0, x - 0.7) / 0.3) ^ 5
|
// matching flyte curve y = 0.25x^2 + (max(0, x - 0.7) / 0.3) ^ 5
|
||||||
lazerLogo.FadeIn().ScaleTo(scale_start).Then().Delay(logo_scale_duration * 0.7f).ScaleTo(scale_start - scale_adjust, logo_scale_duration * 0.3f, Easing.InQuint);
|
lazerLogo.FadeIn().ScaleTo(scale_start).Then().Delay(logo_scale_duration * 0.7f).ScaleTo(scale_start - scale_adjust, logo_scale_duration * 0.3f, Easing.InQuint);
|
||||||
|
|
||||||
const double highlight_duration = logo_scale_duration / 1.4;
|
lazerLogo.TransformTo(nameof(LazerLogo.Background), 1f, logo_scale_duration);
|
||||||
|
lazerLogo.TransformTo(nameof(LazerLogo.Highlight), 1f, logo_scale_duration);
|
||||||
//Since we only have one texture, roughly align it by changing the timing
|
|
||||||
lazerLogo.Outline = -0.4f;
|
|
||||||
lazerLogo.TransformTo(nameof(LazerLogo.Outline), 1f, highlight_duration * 1.4);
|
|
||||||
|
|
||||||
lazerLogo.OutlineHighlight = 0f;
|
|
||||||
lazerLogo.TransformTo(nameof(LazerLogo.OutlineHighlight), 1f, highlight_duration);
|
|
||||||
|
|
||||||
logoContainerSecondary.ScaleTo(scale_start).Then().ScaleTo(scale_start - scale_adjust * 0.25f, logo_scale_duration, Easing.InQuad);
|
logoContainerSecondary.ScaleTo(scale_start).Then().ScaleTo(scale_start - scale_adjust * 0.25f, logo_scale_duration, Easing.InQuad);
|
||||||
}
|
}
|
||||||
@ -267,18 +261,18 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private class LazerLogo : CompositeDrawable
|
private class LazerLogo : CompositeDrawable
|
||||||
{
|
{
|
||||||
private HueAnimation outlineHighlight, outline;
|
private HueAnimation highlight, background;
|
||||||
|
|
||||||
public float OutlineHighlight
|
public float Highlight
|
||||||
{
|
{
|
||||||
get => outlineHighlight.AnimationProgress;
|
get => highlight.AnimationProgress;
|
||||||
set => outlineHighlight.AnimationProgress = value;
|
set => highlight.AnimationProgress = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float Outline
|
public float Background
|
||||||
{
|
{
|
||||||
get => outline.AnimationProgress;
|
get => background.AnimationProgress;
|
||||||
set => outline.AnimationProgress = value;
|
set => background.AnimationProgress = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LazerLogo()
|
public LazerLogo()
|
||||||
@ -289,21 +283,22 @@ namespace osu.Game.Screens.Menu
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures)
|
private void load(TextureStore textures)
|
||||||
{
|
{
|
||||||
const string lazer_logo_texture = @"Intro/Triangles/logo-triangles";
|
const string lazer_logo_background = @"Intro/Triangles/logo-background";
|
||||||
|
const string lazer_logo_highlight = @"Intro/Triangles/logo-highlight";
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
outlineHighlight = new HueAnimation
|
highlight = new HueAnimation
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Texture = textures.Get(lazer_logo_texture),
|
Texture = textures.Get(lazer_logo_highlight),
|
||||||
Colour = OsuColour.Gray(0.8f),
|
Colour = OsuColour.Gray(1f),
|
||||||
},
|
},
|
||||||
outline = new HueAnimation
|
background = new HueAnimation
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Texture = textures.Get(lazer_logo_texture),
|
Texture = textures.Get(lazer_logo_background),
|
||||||
Colour = OsuColour.Gray(0.6f * 0.8f),
|
Colour = OsuColour.Gray(0.6f),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user