Esempio n. 1
0
 public ListBox(Vector3 position, Vector2 size, ListBoxOptions opts) :
     base(position, size, opts)
 {
     _items          = new List <ListItem <T> >();
     _readItems      = _items.AsReadOnly();
     _opts           = opts;
     _group          = new RadioGroup();
     _group.Changed += (sender, e) => {
         if (this.SelectionChanged != null)
         {
             this.SelectionChanged(this, e);
         }
     };
 }
Esempio n. 2
0
 public ListBox(Rect bounds, float depth, ListBoxOptions opts) :
     this(new Vector3(bounds.x, bounds.y, depth), new Vector2(bounds.width, bounds.height), opts)
 {
 }