Exemple #1
0
        protected override bool HandleAttachment(ref EditorGUIElementAttachment attachment)
        {
            if (element != null)
            {
                element.AddAttachment(attachment);
            }

            return(false);
        }
Exemple #2
0
        protected override bool HandleAttachment(ref EditorGUIElementAttachment attachment)
        {
            EditorGUIElementAttachment_Singular_Label_GUIContent_Inline label;

            if (attachment.Convert <EditorGUIElementAttachment_Singular_Label_GUIContent_Inline>(out label))
            {
                attachment = new EditorGUIElementAttachment_Singular_Label_GUIContent_Block(label.GetLabel());
            }

            return(base.HandleAttachment(ref attachment));
        }
Exemple #3
0
        public bool RemoveAttachment(EditorGUIElementAttachment to_remove)
        {
            if (attachments.Remove(to_remove) | surpressed_attachments.Remove(to_remove))
            {
                Invalidate();

                return(true);
            }

            return(false);
        }
Exemple #4
0
        protected override bool HandleAttachment(ref EditorGUIElementAttachment attachment)
        {
            EditorGUIElementAttachment_Singular_Label_GUIContent cast;

            if (attachment.Convert <EditorGUIElementAttachment_Singular_Label_GUIContent>(out cast))
            {
                label = cast;
                return(false);
            }

            return(true);
        }
Exemple #5
0
        public void AddAttachment(EditorGUIElementAttachment to_add)
        {
            if (to_add != null)
            {
                if (to_add.PrepareElementForAttachment(this))
                {
                    if (HandleAttachment(ref to_add))
                    {
                        attachments.Add(to_add);
                    }
                    else
                    {
                        surpressed_attachments.Add(to_add);
                    }

                    Invalidate();
                }
            }
        }
Exemple #6
0
 protected virtual bool HandleAttachment(ref EditorGUIElementAttachment attachment)
 {
     return(true);
 }
Exemple #7
0
 public bool RemoveAttachment(EditorGUIElementAttachment to_remove)
 {
     return(element.RemoveAttachment(to_remove));
 }
Exemple #8
0
 public void AddAttachment(EditorGUIElementAttachment to_add)
 {
     element.AddAttachment(to_add);
 }