Nez.Portable/UI/Stage.cs
/// <summary>
/// Disables debug on all elements recursively except the specified element and any children
/// </summary>
/// <param name="element">element.</param>
/// <param name="except">Except.</param>
Disables debug on all elements recursively except the specified element and any children
Disables debug on all elements recursively except the specified element and any children
void disableDebug(Element element, Element except)
        {
            if (element == except)
                return;
            element.setDebug(false);
            if (element is Group)
            {
                var children = ((Group)element).children;
                for (int i = 0, n = children.Count; i < n; i++)
                    disableDebug(children[i], except);
            }
        }
void disableDebug ( Element element , Element except ) { if ( element == except ) return ; element . setDebug ( false ) ; if ( element is Group ) { var children = ( ( Group ) element ) . children ; for ( int i = 0 , n = children . Count ; i < n ; i ++ ) disableDebug ( children [ i ] , except ) ; } }
Disables debug on all elements recursively except the specified element and any children
Disables debug on all elements recursively except the specified element and any children
element
Element
None
except
Element
None