mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fade shadow effect in to avoid appearing too early in transition
This commit is contained in:
@ -45,7 +45,7 @@ namespace osu.Game.Overlays
|
||||
Masking = true;
|
||||
EdgeEffect = new EdgeEffectParameters
|
||||
{
|
||||
Colour = Color4.Black.Opacity(0.5f),
|
||||
Colour = Color4.Black.Opacity(0),
|
||||
Type = EdgeEffectType.Shadow,
|
||||
Radius = 10
|
||||
};
|
||||
@ -57,6 +57,18 @@ namespace osu.Game.Overlays
|
||||
this.api = api;
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
{
|
||||
base.PopIn();
|
||||
FadeEdgeEffectTo(0.5f, APPEAR_DURATION, EasingTypes.In);
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
{
|
||||
base.PopOut();
|
||||
FadeEdgeEffectTo(0, DISAPPEAR_DURATION, EasingTypes.Out);
|
||||
}
|
||||
|
||||
public void ShowUser(User user)
|
||||
{
|
||||
userReq?.Cancel();
|
||||
|
Reference in New Issue
Block a user