示例#1
0
        void DoChart()
        {
            EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
            EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
            //curveScale = GUILayout.VerticalSlider(curveScale, 1f, 0.01f, this._surveScaleOption);
            EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
            EditorGUILayout.BeginVertical(GuiSkinManager.Styles.textField, new GUILayoutOption[]
            {
                GUILayout.MinHeight(50f),
                GUILayout.ExpandWidth(true)
            });
            GUILayout.Space(3f);
            Rect controlRect = EditorGUILayout.GetControlRect(false, this._frameInfoRectsOption);

            GUI.Label(controlRect, GUIContent.none, GuiSkinManager.Styles.entryOdd);
            GUILayout.Space(3f);
            Rect controlRect2 = EditorGUILayout.GetControlRect(false, this._mainRectsOption);

            GUILayout.Space(5f);
            EditorGUILayout.EndVertical();
            EditorGUILayout.EndVertical();
            EditorGUILayout.EndHorizontal();

            GUILayout.Space(7f);
            SplitterGUILayout.BeginHorizontalSplit(this._minmaxSlider, new GUILayoutOption[0]);
            SplitterGUILayout.EndHorizontalSplit();
            GUILayout.Space(2f);

            DrawChart(controlRect2);
            EditorGUILayout.EndVertical();
        }
示例#2
0
        void DoChart()
        {
            EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
            //curveScale = GUILayout.VerticalSlider(curveScale, 1f, 0.01f, this._surveScaleOption);
            EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
            if (currentStyle == null || currentStyle.normal.background == null)
            {
                currentStyle = new GUIStyle(EditorStyles.helpBox);
                if (boxTex != null)
                {
                    Destory(boxTex);
                    boxTex = null;
                }
                boxTex = GenTextureColor(15, 15, boxColor);
                currentStyle.normal.background = boxTex;
            }
            EditorGUILayout.BeginVertical(currentStyle, new GUILayoutOption[]
            {
                GUILayout.MinHeight(50f),
                GUILayout.ExpandWidth(true)
            });
            Rect controlRect2 = EditorGUILayout.GetControlRect(false, this._mainRectsOption);

            GUILayout.Space(5f);
            EditorGUILayout.EndVertical();
            EditorGUILayout.EndVertical();

            GUILayout.Space(7f);
            SplitterGUILayout.BeginHorizontalSplit(this._minmaxSlider, new GUILayoutOption[0]);
            SplitterGUILayout.EndHorizontalSplit();
            GUILayout.Space(2f);

            DrawChart(controlRect2);
            EditorGUILayout.EndVertical();
        }