protected override bool HandleAttachment(ref EditorGUIElementAttachment attachment) { if (element != null) { element.AddAttachment(attachment); } return(false); }
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)); }
public bool RemoveAttachment(EditorGUIElementAttachment to_remove) { if (attachments.Remove(to_remove) | surpressed_attachments.Remove(to_remove)) { Invalidate(); return(true); } return(false); }
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); }
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(); } } }
protected virtual bool HandleAttachment(ref EditorGUIElementAttachment attachment) { return(true); }
public bool RemoveAttachment(EditorGUIElementAttachment to_remove) { return(element.RemoveAttachment(to_remove)); }
public void AddAttachment(EditorGUIElementAttachment to_add) { element.AddAttachment(to_add); }