Beispiel #1
0
        public override void Activity(ICollection <GraphicalUiElement> selectedObjects)
        {
            if (selectedObjects.Count != 0)
            {
                RefreshSideOver();

                RefreshRotationGrabbed();

                PushActivity();

                ClickActivity();

                HandlesActivity();

                BodyGrabbingActivity();

                RotationHandleGrabbingActivity();

                bool shouldSkip = selectedObjects.Any(item => item.Tag is ScreenSave);

                if (!shouldSkip)
                {
                    mResizeHandles.SetValuesFrom(selectedObjects);

                    mResizeHandles.UpdateHandleRadius();

                    UpdateRotationHandlePosition();
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Updates the resize handles according to the current object.  We need to do this every
        /// frame because the selected IPSO may be a Sprite that is continually updating itself.
        /// </summary>
        private void UpdateResizeHandles()
        {
            if (SelectedIpsos.Count != 0)
            {
                bool shouldSkip = SelectedIpso.Tag is ScreenSave;

                if (!shouldSkip)
                {
                    mResizeHandles.SetValuesFrom(SelectedIpsos);

                    mResizeHandles.UpdateHandleRadius();
                }
            }
        }