mirror of
https://github.com/ppy/osu
synced 2024-12-26 00:32:52 +00:00
Rename parameter and default to 0
This commit is contained in:
parent
15d070668d
commit
07a08d28c6
@ -252,10 +252,10 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private bool backgroundFaded;
|
||||
|
||||
protected void FadeInBackground(float fadeInTime)
|
||||
protected void FadeInBackground(float duration = 0)
|
||||
{
|
||||
ApplyToBackground(b => b.FadeColour(Color4.White, duration));
|
||||
backgroundFaded = true;
|
||||
ApplyToBackground(b => b.FadeColour(Color4.White, fadeInTime));
|
||||
}
|
||||
|
||||
public override void OnSuspending(ScreenTransitionEvent e)
|
||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Screens.Menu
|
||||
if (UsingThemedIntro)
|
||||
decoupledClock.ChangeSource(Track);
|
||||
|
||||
LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground(0))
|
||||
LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground())
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Clock = decoupledClock,
|
||||
|
Loading…
Reference in New Issue
Block a user