mirror of https://github.com/ppy/osu
Rename parameter and default to 0
This commit is contained in:
parent
15d070668d
commit
07a08d28c6
|
@ -252,10 +252,10 @@ public override void OnResuming(ScreenTransitionEvent e)
|
|||
|
||||
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 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
|
|||
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