//public DropDownList(Enum Items) // : this() //{ // this.Items = EnumExtensions.ToEnumDescriptions(Items); //} public DropDownList(MonoBehaviourWindow Window) { this.Window = Window; //set internal variable so we dont trigger the event before the object exists _ListVisible = false; SelectedIndex = 0; SkinsLibrary.OnSkinChanged += SkinsLibrary_OnSkinChanged; }
public DropDownList(IEnumerable <String> Items, MonoBehaviourWindow Window) : this(Window) { this.Items = Items.ToList <String>(); }
//Constructors public DropDownList(IEnumerable <String> Items, Int32 Selected, MonoBehaviourWindow Window) : this(Items, Window) { SelectedIndex = Selected; }