AIEditor.EditingLogic.CursorControlOverObjects C# (CSharp) Метод

CursorControlOverObjects() приватный Метод

private CursorControlOverObjects ( ) : void
Результат void
        private void CursorControlOverObjects()
        {
            Cursor cursor = GuiManager.Cursor;


            #region Pushing selects and grabs a Node or link
            if (cursor.PrimaryPush)
            {
                #region Check for nodes

                mNodeGrabbed = mNodeOver;
                cursor.SetObjectRelativePosition(mNodeGrabbed);

                SelectNode(mNodeGrabbed);

                #endregion

                #region Check for links

                if (mCurrentNodes.Count == 0)
                {
                    SelectLink(mLinkOver, mLinkOverParent);
                }

                #endregion
            }
            #endregion

            #region Holding the button down can be used to adjust node properties
            if (cursor.PrimaryDown)
            {
                PerformDraggingUpdate();

            }
            #endregion

            #region Clicking (releasing) the mouse lets go of grabbed Polygons

            if (cursor.PrimaryClick)
            {
                mNodeGrabbed = null;

                cursor.StaticPosition = false;

                cursor.ObjectGrabbed = null;

                TextManager.RemoveText(mDistanceDisplay);

            }

            #endregion

        }