Example #1
0
        private bool MatchItem(TypeNameTokens t, string search)
        {
            search = search.Replace(" ", string.Empty);
            var name = t.simpleTypeName.Replace(" ", string.Empty);

            return(name.IndexOf(search, StringComparison.OrdinalIgnoreCase) >= 0);
        }
        private void DrawTypeListItem(TypeNameTokens t)
        {
            var labelContent = new GUIContent();

            EditorGUILayout.BeginVertical("Box");
            labelContent.text = t.fullTypeName;
            EditorGUILayout.LabelField(labelContent);
            EditorGUILayout.EndVertical();
        }
Example #3
0
        internal void UpdateResolvedType(UnresolvedType t, TypeNameTokens typeName)
        {
            if (typeName != null && !_identifiedTypes.ContainsKey(typeName.completeTypeName))
            {
                _identifiedTypes[typeName.completeTypeName] = Type.GetType(typeName.completeTypeName);
            }
            else if (t.resolvedTypeName != null && typeName == null)
            {
                _identifiedTypes.Remove(t.resolvedTypeName.completeTypeName);
            }

            t.resolvedTypeName = typeName;
        }
Example #4
0
 private GUIContent RenderListItem(TypeNameTokens t)
 {
     _listItemContent.text = t.fullTypeName;
     return(_listItemContent);
 }