public IGuiMenuItem Insert(int index, string key, string text, char icon = (char)0) { IGuiMenuItem item = new GuiMenuItem(key, text, icon); this.Insert(index, item); return(item); }
public IGuiMenuItem Add(string key, string text, char icon = (char)0) { IGuiMenuItem item = new GuiMenuItem(key, text, icon); this.Add(item); return(item); }
public IGuiMenuItem InsertSeparator(int index, string key) { GuiMenuItem item = new GuiMenuItem(key, "-"); item.Parent = this; Children.Insert(index, item); return(item); }
public IGuiMenuItem AddSeparator(string key) { GuiMenuItem item = new GuiMenuItem(key, "-"); item.Parent = this; Children.Add(item); return(item); }
public IGuiMenuItem InsertChild(int index, string name, string text, char icon = (char)0) { GuiMenuItem item = new GuiMenuItem(name, text, icon); item.Parent = this; Children.Insert(index, item); return(item); }
public IGuiMenuItem AddChild(string name, string text, char icon = (char)0) { GuiMenuItem item = new GuiMenuItem(name, text, icon); item.Parent = this; Children.Add(item); return(item); }