1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:43:10 +08:00

Add initial additive blending on fade in

This commit is contained in:
Dean Herbert 2023-12-28 15:16:42 +09:00
parent 972234b1e5
commit 0ea62d0c5d
No known key found for this signature in database

View File

@ -121,7 +121,6 @@ namespace osu.Game.Screens.Menu
if (!loaded.SystemTitle.Equals(Current.Value)) if (!loaded.SystemTitle.Equals(Current.Value))
loaded.Dispose(); loaded.Dispose();
loaded.FadeInFromZero(500, Easing.OutQuint);
content.Add(currentImage = loaded); content.Add(currentImage = loaded);
}, (cancellationTokenSource ??= new CancellationTokenSource()).Token); }, (cancellationTokenSource ??= new CancellationTokenSource()).Token);
} }
@ -154,16 +153,25 @@ namespace osu.Game.Screens.Menu
{ {
Texture = texture, Texture = texture,
Blending = BlendingParameters.Additive, Blending = BlendingParameters.Additive,
Alpha = 0,
}, },
}; };
} }
public void Flash() protected override void LoadComplete()
{
base.LoadComplete();
this.FadeInFromZero(500, Easing.OutQuint);
flash.FadeOutFromOne(4000, Easing.OutQuint);
}
public Drawable Flash()
{ {
flash.FadeInFromZero(50) flash.FadeInFromZero(50)
.Then() .Then()
.FadeOut(500, Easing.OutQuint); .FadeOut(500, Easing.OutQuint);
return this;
} }
} }
} }