1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Schedule some illegal calls.

This commit is contained in:
Dean Herbert 2016-11-02 01:02:34 +09:00
parent 774b47c1fe
commit c78e3efc66
4 changed files with 8 additions and 8 deletions

View File

@ -19,12 +19,12 @@ namespace osu.Game.GameModes.Edit
protected override void OnEntering(GameMode last)
{
base.OnEntering(last);
Background.FadeColour(Color4.DarkGray, 500);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
}
protected override bool OnExiting(GameMode next)
{
Background.FadeColour(Color4.White, 500);
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next);
}
}

View File

@ -26,12 +26,12 @@ namespace osu.Game.GameModes.Multiplayer
{
base.OnEntering(last);
Background.FadeColour(Color4.DarkGray, 500);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
}
protected override bool OnExiting(GameMode next)
{
Background.FadeColour(Color4.White, 500);
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next);
}
}

View File

@ -19,12 +19,12 @@ namespace osu.Game.GameModes.Play
protected override void OnEntering(GameMode last)
{
base.OnEntering(last);
Background.FadeColour(Color4.DarkGray, 500);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
}
protected override bool OnExiting(GameMode next)
{
Background.FadeColour(Color4.White, 500);
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next);
}
}

View File

@ -14,12 +14,12 @@ namespace osu.Game.GameModes.Ranking
protected override void OnEntering(GameMode last)
{
base.OnEntering(last);
Background.FadeColour(Color4.DarkGray, 500);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
}
protected override bool OnExiting(GameMode next)
{
Background.FadeColour(Color4.White, 500);
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next);
}
}