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); } }; }
public ListBox(Rect bounds, float depth, ListBoxOptions opts) : this(new Vector3(bounds.x, bounds.y, depth), new Vector2(bounds.width, bounds.height), opts) { }