mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Merge pull request #11984 from peppy/intro-triangles-background-access
Fix potential cross-thread drawable mutation in IntroTriangles
This commit is contained in:
commit
ef88cbd9f4
@ -13,6 +13,8 @@ namespace osu.Game.Screens
|
|||||||
{
|
{
|
||||||
private readonly bool animateOnEnter;
|
private readonly bool animateOnEnter;
|
||||||
|
|
||||||
|
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks;
|
||||||
|
|
||||||
protected BackgroundScreen(bool animateOnEnter = true)
|
protected BackgroundScreen(bool animateOnEnter = true)
|
||||||
{
|
{
|
||||||
this.animateOnEnter = animateOnEnter;
|
this.animateOnEnter = animateOnEnter;
|
||||||
|
@ -170,7 +170,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
rulesets.Hide();
|
rulesets.Hide();
|
||||||
lazerLogo.Hide();
|
lazerLogo.Hide();
|
||||||
background.Hide();
|
background.ApplyToBackground(b => b.Hide());
|
||||||
|
|
||||||
using (BeginAbsoluteSequence(0, true))
|
using (BeginAbsoluteSequence(0, true))
|
||||||
{
|
{
|
||||||
@ -231,7 +231,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
lazerLogo.Dispose(); // explicit disposal as we are pushing a new screen and the expire may not get run.
|
lazerLogo.Dispose(); // explicit disposal as we are pushing a new screen and the expire may not get run.
|
||||||
|
|
||||||
logo.FadeIn();
|
logo.FadeIn();
|
||||||
background.FadeIn();
|
|
||||||
|
background.ApplyToBackground(b => b.Show());
|
||||||
|
|
||||||
game.Add(new GameWideFlash());
|
game.Add(new GameWideFlash());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user