public static IGuiElementGroup CreateGroup(this IGuiElementGroup group, string label) { var elementGroup = new GuiGroup(label); group.Add(elementGroup); return(elementGroup); }
//--------------------------------------------------------------- #endregion //--------------------------------------------------------------- //--------------------------------------------------------------- #region Methods //--------------------------------------------------------------- /// <summary> /// Enable or disable the debug overlay. /// </summary> /// <param name="flag">Flag to enable the debug overlay.</param> protected void EnableDebugOverlay(bool flag) { GuiGroup group = TopGui; // just to create TopGui if (this.debugOverlay != null) { debugOverlay.Enabled = flag; } }