Ejemplo n.º 1
0
 internal override void OnHeaderIconGUI(Rect iconRect)
 {
     using (new EditorGUI.DisabledScope(!TimelineUtility.IsCurrentSequenceValid() || IsCurrentSequenceReadOnly()))
     {
         GUI.Label(iconRect, Styles.SignalEmitterIcon);
     }
 }
Ejemplo 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));
     }
 }
Ejemplo n.º 3
0
 internal override bool IsEnabled()
 {
     return(TimelineUtility.IsCurrentSequenceValid() && !IsCurrentSequenceReadOnly() && base.IsEnabled());
 }