public virtual bool HasCursorOver(FlatRedBall.Gui.Cursor cursor) { if (mIsPaused) { return(false); } if (!AbsoluteVisible) { return(false); } if (LayerProvidedByContainer != null && LayerProvidedByContainer.Visible == false) { return(false); } if (!cursor.IsOn(LayerProvidedByContainer)) { return(false); } if (VictoryTextLabel.HasCursorOver(cursor)) { return(true); } if (PlayAgainText.HasCursorOver(cursor)) { return(true); } if (NoButton.HasCursorOver(cursor)) { return(true); } if (YesButton.HasCursorOver(cursor)) { return(true); } if (BackgroundSprite.Alpha != 0 && BackgroundSprite.AbsoluteVisible && cursor.IsOn3D(BackgroundSprite, LayerProvidedByContainer)) { return(true); } return(false); }