public void Init(DependencyAbstractFinder d) { _data = d; _labelMaxWidth = CalculateContentMaxWidth(EditorStyles.label, _data.Dependencies.SelectMany(dd => dd.Properties.Select(p => p.Content))); _rowPropWidth = CalculateContentMaxWidth(EditorStyles.label, _data.Target.Nested.Union(new[] { _data.Target.Root }).Where(o => o).Select(o => new GUIContent((o is ScriptableObject || o is MonoScript) ? o.ToString() : o.name))); titleContent = new GUIContent($"{FindMode.GetWindowTitleByFindMode(_findMode)}"); titleContent.tooltip = _data.Title; }
public void Init(DependencyAbstractFinder d) { _data = d; // _labelMaxWidth = CalculateContentMaxWidth(EditorStyles.label, _data.Dependencies.SelectMany(dd => dd.Properties.Select(p => p.Content))); // var t = new[] {_data.Target.Root}; // if (_data.Target.Nested.TryGet(out var nested)) titleContent = new GUIContent($"{FindMode.GetWindowTitleByFindMode(_findMode)}"); titleContent.tooltip = _data.Title; }