1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 23:27:25 +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))
loaded.Dispose();
loaded.FadeInFromZero(500, Easing.OutQuint);
content.Add(currentImage = loaded);
}, (cancellationTokenSource ??= new CancellationTokenSource()).Token);
}
@ -154,16 +153,25 @@ namespace osu.Game.Screens.Menu
{
Texture = texture,
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)
.Then()
.FadeOut(500, Easing.OutQuint);
return this;
}
}
}