コード例 #1
0
        public static IGuiElementGroup CreateGroup(this IGuiElementGroup group, string label)
        {
            var elementGroup = new GuiGroup(label);

            group.Add(elementGroup);

            return(elementGroup);
        }
コード例 #2
0
        //---------------------------------------------------------------
        #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;
            }
        }