Exemplo n.º 1
0
        // ---------------
        public void DrawGUI(TouchGestureThresholds target)
        {
            if (this.foldable)
            {
                if (!CFGUI.BoldFoldout(this.titleContent, ref this.foldedOut))
                {
                    return;
                }


                InspectorUtils.BeginIndentedSection();         //CFGUI.BeginIndentedVertical(CFEditorStyles.Inst.transpSunkenBG);
            }
            else
            {
                InspectorUtils.BeginIndentedSection(this.titleContent);
            }


            this.DrawBasicGUI(target);

            MultiTouchGestureThresholds multiTarget = (target as MultiTouchGestureThresholds);

            if (multiTarget != null)
            {
                EditorGUILayout.Space();
                this.DrawMultiTouchGUI(multiTarget);
            }

            //CFGUI.EndIndentedVertical();
            InspectorUtils.EndIndentedSection();
        }
        static public bool BeginIndentedSection(GUIContent sectionTitle, ref bool foldedOut)
        {
            if (!CFGUI.BoldFoldout(sectionTitle, ref foldedOut))
            {
                return(false);
            }

            CFGUI.BeginIndentedVertical(CFEditorStyles.Inst.transpSunkenBG);

            return(true);
        }