static void DrawTrackDropDownMenu(Rect rect)
 {
     if (GUI.Button(rect, GUIContent.none, DirectorStyles.Instance.trackOptions))
     {
         SelectionManager.SelectOnly(TimelineEditor.inspectedAsset.markerTrack);
         SequencerContextMenu.ShowTrackContextMenu(null);
     }
 }
Exemplo n.º 2
0
        protected override bool ContextClick(Event evt, WindowState state)
        {
            if (!IsMouseOverMarkerHeader(evt.mousePosition, state))
            {
                return(false);
            }

            SelectionManager.SelectOnly(state.editSequence.asset.markerTrack);
            SequencerContextMenu.ShowTrackContextMenu(evt.mousePosition);
            return(true);
        }
Exemplo n.º 3
0
        void ContextClickItemCallback(int id)
        {
            // may not occur if another menu is active
            if (!m_TreeView.IsSelected(id))
            {
                SelectionChangedCallback(new[] { id });
            }

            SequencerContextMenu.ShowTrackContextMenu(SelectionManager.SelectedTracks().ToArray(), Event.current.mousePosition);

            Event.current.Use();
        }
Exemplo n.º 4
0
        float DrawTrackDropDownMenu(Rect rect)
        {
            rect.y += WindowConstants.trackOptionButtonVerticalPadding;

            if (GUI.Button(rect, GUIContent.none, m_Styles.trackOptions))
            {
                // the drop down will apply to all selected tracks
                if (!SelectionManager.Contains(track))
                {
                    SelectionManager.Clear();
                    SelectionManager.Add(track);
                }

                SequencerContextMenu.ShowTrackContextMenu(SelectionManager.SelectedTracks().ToArray(), null);
            }

            return(WindowConstants.trackHeaderButtonSize);
        }
 public void DisplayTrackMenu()
 {
     SequencerContextMenu.ShowTrackContextMenu(drawer, track, Event.current.mousePosition);
 }