Example #1
0
        void Activity()
        {
            if (!isInActivity)
            {
                isInActivity = true;
#if DEBUG
                try
#endif
                {
                    InputLibrary.Cursor.Self.StartCursorSettingFrameStart();
                    TimeManager.Self.Activity();

                    SpriteManager.Self.Activity(TimeManager.Self.CurrentTime);

                    DragDropManager.Self.Activity();

                    InputLibrary.Cursor.Self.Activity(TimeManager.Self.CurrentTime);
                    InputLibrary.Keyboard.Self.Activity();
                    if (InputLibrary.Keyboard.Self.KeyPushed(Microsoft.Xna.Framework.Input.Keys.Space))
                    {
                        int m = 3;
                    }

                    bool isOver = this.mTopRuler.HandleXnaUpdate(InputLibrary.Cursor.Self.IsInWindow) ||
                                  mLeftRuler.HandleXnaUpdate(InputLibrary.Cursor.Self.IsInWindow);


                    // But we want the selection to update the handles to the selected object
                    // after editing is done.  SelectionManager.LateActivity lets us do that.  LateActivity must
                    // come after EditingManager.Activity.

                    // Update 1/15/2019
                    // When the user uses scroll bars we get selection to underlying objects.
                    // We want to not have that happen, so we'll check if the mouse has entered
                    // the control. I may have to update this at some point to force deselection
                    // if the mouse has not entered so things don't stay highlighted when exiting
                    // the control
                    // Update 2 - yea, we def need to pass in mouseHasEntered == false to force no highlight

                    if (mTopRuler.IsCursorOver == false && mLeftRuler.IsCursorOver == false)
                    {
                        SelectionManager.Self.Activity(mouseHasEntered == false);
                        // EditingManager activity must happen after SelectionManager activity
                        EditingManager.Self.Activity();

                        SelectionManager.Self.LateActivity();
                    }

                    InputLibrary.Cursor.Self.EndCursorSettingFrameStart();
                }
#if DEBUG
                catch (Exception e)
                {
                    MessageBox.Show(e.ToString());
                }
#endif
            }

            isInActivity = false;
        }
Example #2
0
        void Activity()
        {
            if (!isInActivity)
            {
                isInActivity = true;
#if DEBUG
                try
#endif
                {
                    InputLibrary.Cursor.Self.StartCursorSettingFrameStart();
                    ProjectVerifier.Self.AssertSelectedIpsosArePartOfRenderer();
                    TimeManager.Self.Activity();

                    SpriteManager.Self.Activity(TimeManager.Self.CurrentTime);

                    DragDropManager.Self.Activity();

                    InputLibrary.Cursor.Self.Activity(TimeManager.Self.CurrentTime);
                    InputLibrary.Keyboard.Self.Activity();
                    if (Cursor.PrimaryPush)
                    {
                        int m = 3;
                    }

                    bool isOver = this.mTopRuler.HandleXnaUpdate(InputLibrary.Cursor.Self.IsInWindow) ||
                                  mLeftRuler.HandleXnaUpdate(InputLibrary.Cursor.Self.IsInWindow);


                    // But we want the selection to update the handles to the selected object
                    // after editing is done.  SelectionManager.LateActivity lets us do that.  LateActivity must
                    // come after EidtingManager.Activity.
                    if (mTopRuler.IsCursorOver == false && mLeftRuler.IsCursorOver == false)
                    {
                        SelectionManager.Self.Activity(this);
                        // EditingManager activity must happen after SelectionManager activity
                        EditingManager.Self.Activity();

                        SelectionManager.Self.LateActivity();
                    }

                    InputLibrary.Cursor.Self.EndCursorSettingFrameStart();
                }
#if DEBUG
                catch (Exception e)
                {
                    MessageBox.Show(e.ToString());
                }
#endif
            }

            isInActivity = false;
        }