mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:43:19 +08: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;
|
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)
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user