1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 23:52:54 +08:00

Merge branch 'master' into fix-hold-for-menu-icon

This commit is contained in:
Dan Balasescu 2019-04-22 18:57:43 +09:00 committed by GitHub
commit 8fc0bf24c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -68,8 +68,13 @@ namespace osu.Game.Rulesets.UI
{ {
Cursor = CreateCursor(); Cursor = CreateCursor();
if (Cursor != null) if (Cursor != null)
{
// initial showing of the cursor will be handed by MenuCursorContainer (via DrawableRuleset's IProvideCursor implementation).
Cursor.Hide();
AddInternal(Cursor); AddInternal(Cursor);
} }
}
/// <summary> /// <summary>
/// Performs post-processing tasks (if any) after all DrawableHitObjects are loaded into this Playfield. /// Performs post-processing tasks (if any) after all DrawableHitObjects are loaded into this Playfield.

View File

@ -110,20 +110,17 @@ namespace osu.Game.Screens.Play
adjustableClock.ChangeSource(sourceClock); adjustableClock.ChangeSource(sourceClock);
updateRate(); updateRate();
this.Delay(750).Schedule(() =>
{
if (!IsPaused.Value) if (!IsPaused.Value)
Start(); Start();
}); });
}); });
});
} }
public void Start() public void Start()
{ {
// Seeking the decoupled clock to its current time ensures that its source clock will be seeked to the same time // Seeking the decoupled clock to its current time ensures that its source clock will be seeked to the same time
// This accounts for the audio clock source potentially taking time to enter a completely stopped state // This accounts for the audio clock source potentially taking time to enter a completely stopped state
adjustableClock.Seek(adjustableClock.CurrentTime); Seek(GameplayClock.CurrentTime);
adjustableClock.Start(); adjustableClock.Start();
IsPaused.Value = false; IsPaused.Value = false;
} }