コード例 #1
0
        private void CommitMessageGUI()
        {
            EditorGUIUtility.AddCursorRect(rect, MouseCursor.ResizeVertical);
            rect                = GUIControls.DragButton(rect, GUIContent.none, null);
            rect.y              = position.height - rect.y;
            rect.x              = 0.0f;
            rect.width          = position.width;
            commitMessageHeight = rect.y = Mathf.Clamp(rect.y, minimumControlHeight, position.height - minimumControlHeight);

            GUILayout.BeginArea(new Rect(0, 0, position.width, rect.y));
            vcMultiColumnAssetList.DrawGUI();
            GUILayout.EndArea();

            GUILayout.BeginArea(new Rect(0, rect.y, position.width, position.height - rect.y));
            DrawButtons();
            GUILayout.EndArea();
        }
コード例 #2
0
        private void OnGUI()
        {
            HandleInput();

            EditorGUILayout.BeginVertical();

            DrawToolbar();

            EditorGUIUtility.AddCursorRect(rect, MouseCursor.ResizeVertical);
            rect         = GUIControls.DragButton(rect, GUIContent.none, null);
            rect.x       = 0.0f;
            statusHeight = rect.y = Mathf.Clamp(rect.y, toolbarHeight, position.height - inStatusHeight);

            GUILayout.BeginArea(new Rect(0, toolbarHeight, position.width, rect.y - toolbarHeight));
            vcMultiColumnAssetList.DrawGUI();
            GUILayout.EndArea();

            GUILayout.BeginArea(new Rect(0, rect.y, position.width, position.height - rect.y));
            DrawStatus();
            GUILayout.EndArea();

            EditorGUILayout.EndVertical();
        }