Esempio n. 1
0
        internal override void DrawHeaderHelpAndSettingsGUI(Rect r)
        {
            var       helpSize   = EditorStyles.iconButton.CalcSize(EditorGUI.GUIContents.helpIcon);
            const int kTopMargin = 5;

            EditorGUIUtility.DrawEditorHeaderItems(new Rect(r.xMax - helpSize.x, r.y + kTopMargin, helpSize.x, helpSize.y), targets);
        }
Esempio n. 2
0
 internal override Rect DrawHeaderHelpAndSettingsGUI(Rect r)
 {
     using (new EditorGUI.DisabledScope(!TimelineUtility.IsCurrentSequenceValid() || IsCurrentSequenceReadOnly()))
     {
         var       helpSize   = EditorStyles.iconButton.CalcSize(EditorGUI.GUIContents.helpIcon);
         const int kTopMargin = 5;
         return(EditorGUIUtility.DrawEditorHeaderItems(new Rect(r.xMax - helpSize.x, r.y + kTopMargin, helpSize.x, helpSize.y), targets));
     }
 }
Esempio n. 3
0
 internal override void DrawHeaderHelpAndSettingsGUI(Rect r)
 {
     using (new EditorGUI.DisabledScope(TimelineWindow.instance.state.editSequence.isReadOnly))
     {
         var       helpSize   = EditorStyles.iconButton.CalcSize(EditorGUI.GUIContents.helpIcon);
         const int kTopMargin = 5;
         EditorGUIUtility.DrawEditorHeaderItems(new Rect(r.xMax - helpSize.x, r.y + kTopMargin, helpSize.x, helpSize.y), targets);
     }
 }
 internal override Rect DrawHeaderHelpAndSettingsGUI(Rect r)
 {
     using (new EditorGUI.DisabledScope(IsLocked()))
     {
         var       helpSize   = EditorStyles.iconButton.CalcSize(EditorGUI.GUIContents.helpIcon);
         const int kTopMargin = 5;
         // Show Editor Header Items.
         return(EditorGUIUtility.DrawEditorHeaderItems(new Rect(r.xMax - helpSize.x, r.y + kTopMargin, helpSize.x, helpSize.y), targets));
     }
 }