Example #1
0
 public ObjectListControl MakeRemovable(IconButton icon, Action <IList, int> callback = null)
 {
     MakeItemButton(icon, Remove, Color.white);
     _customRemove = callback;
     return(this);
 }
Example #2
0
 public ObjectListControl MakeEditable(IconButton icon, Action <IList, int> callback = null)
 {
     MakeItemButton(icon, Edit, Color.white);
     _customEdit = callback;
     return(this);
 }
Example #3
0
 public DictionaryControl MakeEditable(IconButton icon, Action <IEditableDictionary, string> callback = null)
 {
     MakeItemButton(icon, Edit, Color.white);
     _customEdit = callback;
     return(this);
 }
Example #4
0
 public ObjectListControl MakeAddable(IconButton icon, Action <IList> callback = null)
 {
     MakeHeaderButton(icon, Add, Color.white);
     _customAdd = callback;
     return(this);
 }
Example #5
0
 public DictionaryControl MakeAddable(IconButton icon, GUIContent label, Action <IEditableDictionary, string> callback = null)
 {
     MakeHeaderButton(icon, new AddPopup(new AddItemContent(this), label), Color.white);
     _customAdd = callback;
     return(this);
 }
Example #6
0
 public PropertyListControl MakeEditable(IconButton icon, Action <SerializedProperty, int> callback = null)
 {
     MakeItemButton(icon, Edit, Color.white);
     _customEdit = callback;
     return(this);
 }
Example #7
0
 public PropertyListControl MakeAddable(IconButton icon, Action <SerializedProperty> callback = null)
 {
     MakeHeaderButton(icon, Add, Color.white);
     _customAdd = callback;
     return(this);
 }
Example #8
0
 public DictionaryControl MakeRemovable(IconButton icon, Action <IEditableDictionary, string> callback = null)
 {
     MakeItemButton(icon, Remove);
     _customRemove = callback;
     return(this);
 }
 public PropertyListControl MakeRemovable(IconButton icon, Action <SerializedProperty, int> callback = null)
 {
     MakeItemButton(icon, Remove);
     _customRemove = callback;
     return(this);
 }