protected SearchQueryTreeViewItem(SearchQueryTreeView treeView, string displayName, Texture2D icon) { this.icon = icon; this.displayName = displayName; children = new List <TreeViewItem>(); this.treeView = treeView; }
public SearchQueryCategoryTreeViewItem(SearchQueryTreeView treeView, Action addQueryHandler, GUIContent content) : base(treeView, content.text, content.image as Texture2D) { this.addQueryHandler = addQueryHandler; this.content = content; addBtnContent = new GUIContent("", EditorGUIUtility.FindTexture("SaveAs"), content.tooltip); id = $"SearchQueryCategoryTreeViewItem_{content.text}".GetHashCode(); }
public SearchQueryUserTreeViewItem(SearchQueryTreeView treeView, SearchQuery query) : base(treeView, query.name, query.thumbnail) { m_Query = query; id = m_Query.guid.GetHashCode(); }