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

            return(false);
        }
Esempio n. 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));
        }
Esempio n. 3
0
        public bool RemoveAttachment(EditorGUIElementAttachment to_remove)
        {
            if (attachments.Remove(to_remove) | surpressed_attachments.Remove(to_remove))
            {
                Invalidate();

                return(true);
            }

            return(false);
        }
Esempio n. 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);
        }
Esempio n. 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();
                }
            }
        }
Esempio n. 6
0
 protected virtual bool HandleAttachment(ref EditorGUIElementAttachment attachment)
 {
     return(true);
 }
Esempio n. 7
0
 public bool RemoveAttachment(EditorGUIElementAttachment to_remove)
 {
     return(element.RemoveAttachment(to_remove));
 }
Esempio n. 8
0
 public void AddAttachment(EditorGUIElementAttachment to_add)
 {
     element.AddAttachment(to_add);
 }