Esempio n. 1
0
        ///<inheritdoc />
        public override List <SerializedProperty> GetPropertyOrder(IEnumerable <SerializedProperty> properties)
        {
            var serializedProperties = properties.ToList();
            var list = serializedProperties.ToList();

            FoCsEditor.RemoveDefaultProperties(list);
            list.Sort((a, b) => string.Compare(a.name, b.name, StringComparison.Ordinal));
            list.InsertRange(0, FoCsEditor.GetDefaultProperties(serializedProperties.First().serializedObject));

            return(list.ToList());
        }
Esempio n. 2
0
        ///<inheritdoc />
        public override List <SerializedProperty> GetPropertyOrder(IEnumerable <SerializedProperty> properties)
        {
            var list = new List <SerializedProperty>();
            var serializedProperties = properties.ToList();

            foreach (var property in serializedProperties)
            {
                if (property.name.ToLower().Contains(FoCsEditor.Search.ToLower()) && !FoCsEditor.IsDefaultScriptProperty(property))
                {
                    list.Add(property);
                }
            }

            list.InsertRange(0, FoCsEditor.GetDefaultProperties(serializedProperties.First().serializedObject));

            return(list);
        }
 static NormalSorter()
 {
     Instance = new NormalSorter();
     FoCsEditor.AddSortingMode(Instance);
 }
 static InvertedAlphaSorter()
 {
     Instance = new InvertedAlphaSorter();
     FoCsEditor.AddSortingMode(Instance);
 }
Esempio n. 5
0
 public override void DoExtraDraw()
 {
     FoCsEditor.DrawSearchBox();
 }
Esempio n. 6
0
 static SearchSorter()
 {
     Instance = new SearchSorter();
     FoCsEditor.AddSortingMode(Instance);
 }
Esempio n. 7
0
 static AlphaSorter()
 {
     Instance = new AlphaSorter();
     FoCsEditor.AddSortingMode(Instance);
 }
 public ListHandler(FoCsEditor _owner) => ListStorage = _owner.UrlpStorage;
 public UnityReorderableListStorage(FoCsEditor painter)
 {
     storages.Add(this);
     owner = painter;
 }