mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Invert CanShowCursor conditional to fix cursor not showing in VisualTests
This commit is contained in:
parent
e0220de1a5
commit
0459f0a069
@ -20,7 +20,7 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether any cursors can be displayed.
|
/// Whether any cursors can be displayed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool CanShowCursor;
|
public bool CanShowCursor = true;
|
||||||
|
|
||||||
public CursorContainer Cursor { get; }
|
public CursorContainer Cursor { get; }
|
||||||
public bool ProvidingUserCursor => true;
|
public bool ProvidingUserCursor => true;
|
||||||
|
@ -157,6 +157,11 @@ namespace osu.Game
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
// The next time this is updated is in UpdateAfterChildren, which occurs too late and results
|
||||||
|
// in the cursor being shown for a few frames during the intro.
|
||||||
|
// This prevents the cursor from showing until we have a screen with CursorVisible = true
|
||||||
|
CursorOverrideContainer.CanShowCursor = currentScreen?.CursorVisible ?? false;
|
||||||
|
|
||||||
// hook up notifications to components.
|
// hook up notifications to components.
|
||||||
BeatmapManager.PostNotification = n => notifications?.Post(n);
|
BeatmapManager.PostNotification = n => notifications?.Post(n);
|
||||||
BeatmapManager.GetStableStorage = GetStorageForStableInstall;
|
BeatmapManager.GetStableStorage = GetStorageForStableInstall;
|
||||||
|
Loading…
Reference in New Issue
Block a user