public static LTRect element(LTRect rect, int depth)
        {
            LTGUI.isGUIEnabled = true;
            LTGUI.init();
            int num  = depth * LTGUI.RECTS_PER_LEVEL + LTGUI.RECTS_PER_LEVEL;
            int num2 = 0;

            if (rect != null)
            {
                LTGUI.destroy(rect.id);
            }
            if (rect.type == LTGUI.Element_Type.Label && rect.style != null && rect.style.get_normal().get_textColor().a <= 0f)
            {
                Debug.LogWarning("Your GUI normal color has an alpha of zero, and will not be rendered.");
            }
            if (rect.relativeRect.get_width() == float.PositiveInfinity)
            {
                rect.relativeRect = new Rect(0f, 0f, (float)Screen.get_width(), (float)Screen.get_height());
            }
            for (int i = depth * LTGUI.RECTS_PER_LEVEL; i < num; i++)
            {
                LTGUI.r = LTGUI.levels[i];
                if (LTGUI.r == null)
                {
                    LTGUI.r = rect;
                    LTGUI.r.rotateEnabled = true;
                    LTGUI.r.alphaEnabled  = true;
                    LTGUI.r.setId(i, LTGUI.global_counter);
                    LTGUI.levels[i] = LTGUI.r;
                    if (num2 >= LTGUI.levelDepths[depth])
                    {
                        LTGUI.levelDepths[depth] = num2 + 1;
                    }
                    LTGUI.global_counter++;
                    return(LTGUI.r);
                }
                num2++;
            }
            Debug.LogError("You ran out of GUI Element spaces");
            return(null);
        }