1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 13:23:05 +08:00

Rename parameter and default to 0

This commit is contained in:
Salman Ahmed 2022-07-07 23:31:04 +03:00
parent 15d070668d
commit 07a08d28c6
2 changed files with 3 additions and 3 deletions

View File

@ -252,10 +252,10 @@ namespace osu.Game.Screens.Menu
private bool backgroundFaded; private bool backgroundFaded;
protected void FadeInBackground(float fadeInTime) protected void FadeInBackground(float duration = 0)
{ {
ApplyToBackground(b => b.FadeColour(Color4.White, duration));
backgroundFaded = true; backgroundFaded = true;
ApplyToBackground(b => b.FadeColour(Color4.White, fadeInTime));
} }
public override void OnSuspending(ScreenTransitionEvent e) public override void OnSuspending(ScreenTransitionEvent e)

View File

@ -67,7 +67,7 @@ namespace osu.Game.Screens.Menu
if (UsingThemedIntro) if (UsingThemedIntro)
decoupledClock.ChangeSource(Track); decoupledClock.ChangeSource(Track);
LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground(0)) LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground())
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Clock = decoupledClock, Clock = decoupledClock,