public UIHelperBase AddGroup(string text) { bool flag = !string.IsNullOrEmpty(text); UIHelperBase result; if (flag) { UIPanel uIPanel = this.m_Root.AttachUIComponent(UITemplateManager.GetAsGameObject(UIHelperExtension.kGroupTemplate)) as UIPanel; uIPanel.Find <UILabel>("Label").text = text; result = new UIHelperExtension(uIPanel.Find("Content")); } else { DebugOutputPanel.AddMessage(PluginManager.MessageType.Warning, "Cannot create group with no name"); result = null; } return(result); }
private UIDropDown AddDropdownBase(string text, string[] options, OnDropdownSelectionChanged eventCallback) { return(UIHelperExtension.CloneBasicDropDown(text, options, eventCallback, this.m_Root)); }