mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Add initial additive blending on fade in
This commit is contained in:
parent
972234b1e5
commit
0ea62d0c5d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user