Пример #1
0
 public SelectionGrid Add(BindableContent <SelectionGrid> content)
 {
     buttons.Add(content);
     // GUILayout.SelectionGrid requires an array of GUIContent
     buttonContents = buttons.Select(x => x.Content()).ToArray();
     return(this);
 }
Пример #2
0
 public SelectionGrid Remove(BindableContent <SelectionGrid> content)
 {
     buttons.Remove(content);
     buttonContents = buttons.Select(x => x.Content()).ToArray();
     return(this);
 }
Пример #3
0
 public TSelf Content(GUIContent content)
 {
     this.content = new BindableContent <TSelf>(this as TSelf, content);
     return(this as TSelf);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentControl&lt;TSelf&gt;"/> class.
 /// </summary>
 protected ContentControl()
     : base()
 {
     content = new BindableContent <TSelf>(this as TSelf);
     tooltip = new Tooltip <TSelf>(this as TSelf);
 }