public virtual void AddDropDown(MenuItemInfo info, DistinctOptionInfo option) { int num = Items.Count; DropDownMenu item = new DropDownMenu (screen, ItemDisplayLayer, num, info); assignMenuItemInfo (ref info, num, item); item.AddEntries (option); Items.Add (item); }
public virtual void AddDropDown(MenuItemInfo info, DropDownMenuItem[] items, DropDownMenuItem defaultItem) { int num = Items.Count; DropDownMenu item = new DropDownMenu (screen, ItemDisplayLayer, num, info); assignMenuItemInfo (ref info, num, item); item.AddEntries (items, defaultItem); Items.Add (item); }