mirror of
https://github.com/osukey/osukey.git
synced 2025-05-26 07:57:32 +09:00
Fix multiple cursors appearing
This commit is contained in:
parent
c79d187a89
commit
9588944048
@ -35,12 +35,16 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
{
|
{
|
||||||
base.Show();
|
base.Show();
|
||||||
clickToResumeCursor.ShowAt(GameplayCursor.ActiveCursor.Position);
|
clickToResumeCursor.ShowAt(GameplayCursor.ActiveCursor.Position);
|
||||||
|
|
||||||
|
if (localCursorContainer == null)
|
||||||
Add(localCursorContainer = new GameplayCursorContainer());
|
Add(localCursorContainer = new GameplayCursorContainer());
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Hide()
|
public override void Hide()
|
||||||
{
|
{
|
||||||
localCursorContainer.Expire();
|
localCursorContainer?.Expire();
|
||||||
|
localCursorContainer = null;
|
||||||
|
|
||||||
base.Hide();
|
base.Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user