mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 05:52:54 +08:00
Merge pull request #4259 from nekodex/fix-cursor-on-startup
Fix mouse cursor appearing prematurely during startup
This commit is contained in:
commit
dfb4e82125
@ -337,6 +337,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
|
||||||
|
MenuCursorContainer.CanShowCursor = menuScreen?.CursorVisible ?? false;
|
||||||
|
|
||||||
// todo: all archive managers should be able to be looped here.
|
// todo: all archive managers should be able to be looped here.
|
||||||
SkinManager.PostNotification = n => notifications?.Post(n);
|
SkinManager.PostNotification = n => notifications?.Post(n);
|
||||||
SkinManager.GetStableStorage = GetStorageForStableInstall;
|
SkinManager.GetStableStorage = GetStorageForStableInstall;
|
||||||
|
@ -21,6 +21,8 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
public override OverlayActivation InitialOverlayActivationMode => OverlayActivation.Disabled;
|
public override OverlayActivation InitialOverlayActivationMode => OverlayActivation.Disabled;
|
||||||
|
|
||||||
|
public override bool CursorVisible => false;
|
||||||
|
|
||||||
protected override bool AllowBackButton => false;
|
protected override bool AllowBackButton => false;
|
||||||
|
|
||||||
public Loader()
|
public Loader()
|
||||||
|
Loading…
Reference in New Issue
Block a user