mirror of https://github.com/ppy/osu
Fix multiple cursors appearing
This commit is contained in:
parent
c79d187a89
commit
9588944048
|
@ -35,12 +35,16 @@ public override void Show()
|
||||||
{
|
{
|
||||||
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…
Reference in New Issue