No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TimelineWindow_Manipulators.cs 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using UnityEngine;
  2. namespace UnityEditor.Timeline
  3. {
  4. partial class TimelineWindow
  5. {
  6. readonly Control m_PreTreeViewControl = new Control();
  7. readonly Control m_PostTreeViewControl = new Control();
  8. readonly RectangleSelect m_RectangleSelect = new RectangleSelect();
  9. readonly RectangleZoom m_RectangleZoom = new RectangleZoom();
  10. void InitializeManipulators()
  11. {
  12. // Order is important!
  13. // Manipulators that needs to be processed BEFORE the treeView (mainly anything clip related)
  14. m_PreTreeViewControl.AddManipulator(new HeaderSplitterManipulator());
  15. m_PreTreeViewControl.AddManipulator(new TimelinePanManipulator());
  16. m_PreTreeViewControl.AddManipulator(new TrackResize());
  17. m_PreTreeViewControl.AddManipulator(new InlineCurveResize());
  18. m_PreTreeViewControl.AddManipulator(new TrackZoom());
  19. m_PreTreeViewControl.AddManipulator(new Jog());
  20. m_PreTreeViewControl.AddManipulator(TimelineZoomManipulator.Instance);
  21. m_PreTreeViewControl.AddManipulator(new ContextMenuManipulator());
  22. m_PreTreeViewControl.AddManipulator(new EaseClip());
  23. m_PreTreeViewControl.AddManipulator(new TrimClip());
  24. m_PreTreeViewControl.AddManipulator(new SelectAndMoveItem());
  25. m_PreTreeViewControl.AddManipulator(new TrackDoubleClick());
  26. m_PreTreeViewControl.AddManipulator(new DrillIntoClip());
  27. m_PreTreeViewControl.AddManipulator(new InlineCurvesShortcutManipulator());
  28. // Manipulators that needs to be processed AFTER the treeView or any GUI element able to use event (like inline curves)
  29. m_PostTreeViewControl.AddManipulator(new MarkerHeaderTrackManipulator());
  30. m_PostTreeViewControl.AddManipulator(new TimeAreaContextMenu());
  31. m_PostTreeViewControl.AddManipulator(new TrackShortcutManipulator());
  32. m_PostTreeViewControl.AddManipulator(new TimelineShortcutManipulator());
  33. m_PostTreeViewControl.AddManipulator(new ClearSelection());
  34. }
  35. }
  36. }