mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:03:12 +08:00
Fade shadow effect in to avoid appearing too early in transition
This commit is contained in:
parent
35bec7ddc0
commit
eafd05e98f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user